harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lyon <ustcl...@gmail.com>
Subject [gc]about
Date Tue, 15 Apr 2008 13:58:33 GMT
hi all:
I am reading the gc algorithm that are trace_forward and semi_space.

I found that the function fspace_alloc(unsigned size, Allocator
*allocator) is *similar* whih the function sspace_alloc(unsigned size,
Allocator *allocator).But the fspace_alloc call the function
gc_try_schedule_collection(allocator->gc, GC_CAUSE_NIL), sspace_alloc do
According to reading the src, * *I think that the *status* of the two
allocation algorithms is equal. if fspace_alloc needs to call
*gc_try_schedule_collection* ,then sspace_alloc should call the
function.But the fact is not that.
the function *gc_try_schedule_collection *is difficult to understand. I
am confused.So the function
of the *gc_try_schedule_collection *is what.why are the allocations

View raw message