equal
deleted
inserted
replaced
25 // CopyrightVersion 1.2 |
25 // CopyrightVersion 1.2 |
26 |
26 |
27 # include "incls/_precompiled.incl" |
27 # include "incls/_precompiled.incl" |
28 # include "incls/_concurrentGCThread.cpp.incl" |
28 # include "incls/_concurrentGCThread.cpp.incl" |
29 |
29 |
30 bool ConcurrentGCThread::_should_terminate = false; |
|
31 bool ConcurrentGCThread::_has_terminated = false; |
|
32 int ConcurrentGCThread::_CGC_flag = CGC_nil; |
30 int ConcurrentGCThread::_CGC_flag = CGC_nil; |
33 |
31 |
34 SuspendibleThreadSet ConcurrentGCThread::_sts; |
32 SuspendibleThreadSet ConcurrentGCThread::_sts; |
35 |
33 |
36 ConcurrentGCThread::ConcurrentGCThread() { |
34 ConcurrentGCThread::ConcurrentGCThread() : |
|
35 _should_terminate(false), _has_terminated(false) { |
37 _sts.initialize(); |
36 _sts.initialize(); |
38 }; |
37 }; |
39 |
38 |
40 void ConcurrentGCThread::stopWorldAndDo(VoidClosure* op) { |
39 void ConcurrentGCThread::stopWorldAndDo(VoidClosure* op) { |
41 MutexLockerEx x(Heap_lock, |
40 MutexLockerEx x(Heap_lock, |