Skip to content

Commit

Permalink
remove unsed total_objects from struct Pool_Allocator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmy Zhuo committed Sep 8, 2011
1 parent 75f735e commit 91b0b55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/gc/fixed_allocator.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ Parrot_gc_pool_new(SHIM_INTERP, size_t object_size)
Pool_Allocator * const newpool = mem_internal_allocate_typed(Pool_Allocator);

newpool->object_size = attrib_size;
newpool->total_objects = 0;
newpool->objects_per_alloc = num_objs;
newpool->num_free_objects = 0;
newpool->top_arena = NULL;
Expand Down Expand Up @@ -560,7 +559,6 @@ allocate_new_pool_arena(PARROT_INTERP, ARGMOD(Pool_Allocator *pool))
pool->newlast = last;

pool->num_free_objects += num_items;
pool->total_objects += num_items;

if (pool->lo_arena_ptr > (void *)next)
pool->lo_arena_ptr = next;
Expand Down
1 change: 0 additions & 1 deletion src/gc/fixed_allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ typedef struct Pool_Allocator_Arena {

typedef struct Pool_Allocator {
size_t object_size;
size_t total_objects;
size_t objects_per_alloc;
size_t num_free_objects;

Expand Down

0 comments on commit 91b0b55

Please sign in to comment.