pushed the slab init a bit deeper. added a object cache based allocator, including a bootstrap mechanism to have it init during bootup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20896 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-04-29 02:23:37 +00:00
parent f0fa19ce73
commit 6bad493439
9 changed files with 367 additions and 60 deletions
+6 -5
View File
@@ -16,14 +16,15 @@
extern "C" {
#endif
/* create_object_cache_etc flags */
enum {
/* create_object_cache_etc flags */
CACHE_NO_DEPOT = 1 << 0,
};
/* object_cache_alloc flags */
enum {
CACHE_DONT_SLEEP = 1 << 0,
/* object_cache_alloc flags */
CACHE_DONT_SLEEP = 1 << 8,
/* internal */
CACHE_DURING_BOOT = 1 << 31
};
typedef struct object_cache object_cache;
+1 -1
View File
@@ -26,7 +26,7 @@ typedef struct object_depot {
} object_depot;
status_t object_depot_init(object_depot *depot,
status_t object_depot_init(object_depot *depot, uint32 flags,
void (*return_object)(object_depot *, void *));
void object_depot_destroy(object_depot *depot);