You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by lyon <us...@gmail.com> on 2008/04/15 15:59:05 UTC

[gc]about "gc_try_schedule_collection"

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
not.
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
different?
thanks