changed the way to exit the gc finalizer.

touched up processor scheduling debug statements
This commit is contained in:
hyunghwan.chung
2017-08-20 14:43:34 +00:00
parent 3a62300269
commit 37cf7be1bb
6 changed files with 56 additions and 26 deletions

View File

@ -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.

View File

@ -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)