changed the way to exit the gc finalizer.
touched up processor scheduling debug statements
This commit is contained in:
@ -290,7 +290,7 @@ class SemaphoreHeap(Object)
|
||||
|
||||
class(#final,#limited) ProcessScheduler(Object)
|
||||
{
|
||||
var(#get) active, total_count := 0.
|
||||
var(#get) active, should_exit := false, total_count := 0.
|
||||
var(#get) runnable_count := 0.
|
||||
var runnable_head, runnable_tail.
|
||||
var(#get) suspended_count := 0.
|
||||
|
@ -47,7 +47,8 @@ class System(Apex)
|
||||
if (tmp respondsTo: #finalize) { tmp finalize }.
|
||||
}.
|
||||
|
||||
if (Processor total_count == 1)
|
||||
##if (Processor total_count == 1)
|
||||
if (Processor should_exit)
|
||||
{
|
||||
## exit from this loop when there are no other processes running except this finalizer process
|
||||
if (gc)
|
||||
|
Reference in New Issue
Block a user