X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mm%2Fheap2.c;h=2a6827ff41bc2a2ca2d599e10e4e631e49a8bd60;hb=7ee88c4146aeb226a99fe5ff09fd7cf3239fc3a5;hp=2437b861699489314bd59f5764e6641a4ea739ba;hpb=f730b8c3c57cd8f7da6aa8e5d3de85b51f7d4362;p=cacao.git diff --git a/mm/heap2.c b/mm/heap2.c index 2437b8616..2a6827ff4 100644 --- a/mm/heap2.c +++ b/mm/heap2.c @@ -42,6 +42,7 @@ (void*)((long)heap_top + HEURISTIC_PARAM) #endif + /* //#define PSEUDO_GENERATIONAL //#define COLLECT_LIFESPAN //#define NEW_COLLECT_LIFESPAN @@ -50,9 +51,12 @@ //#define GC_COLLECT_STATISTICS //#define FINALIZER_COUNTING +*/ #undef STRUCTURES_ON_HEAP + /* //#define STRUCTURES_ON_HEAP +*/ #define false 0 #define true 1 @@ -349,6 +353,19 @@ heap_add_address_to_address_list(address_list_node** list, void* address) } +inline +static +void +heap_add_address_to_address_list_unsorted(address_list_node** list, + void* address) +{ + address_list_node* new_node = malloc(sizeof(address_list_node)); + new_node->address = address; + new_node->next = *list; + *list = new_node; +} + + inline static void