[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jan 3 01:46:32 2004 
Subject:RE: Comparing Garbage Collectors 
From:David Young 
Volume-ID:1040103.02 

Aaron wrote, wrt incremental heap locking:

> I think we once discussed allowing multiple locks. I.e. when you lock
> the heap you get back a tag saying how far it has been locked, then
> you can unlock back to a specified tag. But I don't think that ever got
> implemented.

It *looks* from the source code (syslock.p) as if it was implemented.
Incrementing and decrementing pop_heap_lock_count do the trick as far as
I can see. (sys_unlock_heap simply sets this active variable to zero,
undoing each incremental lock in turn.) However, this isn't documented,
so maybe there's some bug in the incremental unlocking - though when I
tested it a while back, it did seem to behave as you'd expected.

David