Index: gc_gen/src/mark_compact/mspace.h =================================================================== --- gc_gen/src/mark_compact/mspace.h (revision 504108) +++ gc_gen/src/mark_compact/mspace.h (working copy) @@ -23,9 +23,9 @@ #include "../thread/gc_thread.h" -/* Mark-compaction space is orgnized into blocks*/ +/* Mark-compaction space is organized into blocks*/ typedef struct Mspace{ - /* <-- first couple of fields are overloadded as Space */ + /* <-- first couple of fields are overloaded as Space */ void* heap_start; void* heap_end; unsigned int reserved_heap_size; @@ -42,7 +42,7 @@ unsigned int surviving_size; /* END of Space --> */ - Block* blocks; /* short-cut for mpsace blockheader access, not mandatory */ + Block* blocks; /* short-cut for mspace blockheader access, not mandatory */ /* FIXME:: the block indices should be replaced with block header addresses */ unsigned int first_block_idx; Index: gc_gen/src/trace_forward/fspace.h =================================================================== --- gc_gen/src/trace_forward/fspace.h (revision 504108) +++ gc_gen/src/trace_forward/fspace.h (working copy) @@ -51,7 +51,7 @@ unsigned int surviving_size; /* END of Space --> */ - Block* blocks; /* short-cut for mpsace blockheader access, not mandatory */ + Block* blocks; /* short-cut for mspace blockheader access, not mandatory */ /* FIXME:: the block indices should be replaced with block header addresses */ unsigned int first_block_idx; Index: gc_gen/src/finalizer_weakref/finalizer_weakref.cpp =================================================================== --- gc_gen/src/finalizer_weakref/finalizer_weakref.cpp (revision 504108) +++ gc_gen/src/finalizer_weakref/finalizer_weakref.cpp (working copy) @@ -242,7 +242,7 @@ } finref_add_repset_from_pool(gc, obj_with_fin_pool); - /* fianlizable objects have been added to collector repset pool */ + /* finalizable objects have been added to collector repset pool */ //finref_add_repset_from_pool(collector, finalizable_obj_pool); } Index: gc_gen/src/finalizer_weakref/finalizer_weakref_metadata.cpp =================================================================== --- gc_gen/src/finalizer_weakref/finalizer_weakref_metadata.cpp (revision 504108) +++ gc_gen/src/finalizer_weakref/finalizer_weakref_metadata.cpp (working copy) @@ -189,7 +189,7 @@ } } -/* reset weak references vetctor block of each collector */ +/* reset weak references vector block of each collector */ void collector_reset_weakref_sets(Collector *collector) { GC *gc = collector->gc; Index: gc_gen/src/thread/collector_alloc.h =================================================================== --- gc_gen/src/thread/collector_alloc.h (revision 504108) +++ gc_gen/src/thread/collector_alloc.h (working copy) @@ -52,7 +52,7 @@ we don't put a simple bit in vt because we need compute obj size later. */ if ((void*)oi != atomic_casptr((volatile void**)get_obj_info_addr(p_obj), (void*)((POINTER_SIZE_INT)p_targ_obj|FORWARD_BIT), (void*)oi)) { /* forwarded by other, we need unalloc the allocated obj. We may waste some space if the allocation switched - block. The remaining part of the switched block cannot be revivied for next allocation of + block. The remaining part of the switched block cannot be revived for next allocation of object that has smaller size than this one. */ assert( obj_is_fw_in_oi(p_obj)); thread_local_unalloc(size, (Allocator*)collector); Index: gc_gen/src/common/gc_space.h =================================================================== --- gc_gen/src/common/gc_space.h (revision 504108) +++ gc_gen/src/common/gc_space.h (working copy) @@ -60,7 +60,7 @@ typedef struct Blocked_Space { - /* <-- first couple of fields are overloadded as Space */ + /* <-- first couple of fields are overloaded as Space */ void* heap_start; void* heap_end; unsigned int reserved_heap_size; @@ -77,7 +77,7 @@ unsigned int surviving_size; /* END of Space --> */ - Block* blocks; /* short-cut for mpsace blockheader access, not mandatory */ + Block* blocks; /* short-cut for mspace blockheader access, not mandatory */ /* FIXME:: the block indices should be replaced with block header addresses */ unsigned int first_block_idx; Index: gc_gen/src/mark_sweep/free_area_pool.h =================================================================== --- gc_gen/src/mark_sweep/free_area_pool.h (revision 504108) +++ gc_gen/src/mark_sweep/free_area_pool.h (working copy) @@ -32,7 +32,7 @@ #define NUM_FREE_LIST 128 typedef struct Lockable_Bidir_List{ - /* <-- First couple of fields overloadded as Bidir_List */ + /* <-- First couple of fields overloaded as Bidir_List */ unsigned int zero; Bidir_List* next; Bidir_List* prev; @@ -41,7 +41,7 @@ }Lockable_Bidir_List; typedef struct Free_Area{ - /* <-- First couple of fields overloadded as Bidir_List */ + /* <-- First couple of fields overloaded as Bidir_List */ unsigned int zero; Bidir_List* next; Bidir_List* prev; Index: gc_gen/src/mark_sweep/lspace.h =================================================================== --- gc_gen/src/mark_sweep/lspace.h (revision 504108) +++ gc_gen/src/mark_sweep/lspace.h (working copy) @@ -26,7 +26,7 @@ #include "free_area_pool.h" typedef struct Lspace{ - /* <-- first couple of fields are overloadded as Space */ + /* <-- first couple of fields are overloaded as Space */ void* heap_start; void* heap_end; unsigned int reserved_heap_size;