equal
deleted
inserted
replaced
47 #ifndef SERIALGC |
47 #ifndef SERIALGC |
48 if (UseConcMarkSweepGC) { |
48 if (UseConcMarkSweepGC) { |
49 // In the future we should investigate whether CMS can use the |
49 // In the future we should investigate whether CMS can use the |
50 // more-general mechanism below. DLD (01/05). |
50 // more-general mechanism below. DLD (01/05). |
51 ConcurrentMarkSweepThread::synchronize(false); |
51 ConcurrentMarkSweepThread::synchronize(false); |
52 } else { |
52 } else if (UseG1GC) { |
53 ConcurrentGCThread::safepoint_synchronize(); |
53 ConcurrentGCThread::safepoint_synchronize(); |
54 } |
54 } |
55 #endif // SERIALGC |
55 #endif // SERIALGC |
56 |
56 |
57 // By getting the Threads_lock, we assure that no threads are about to start or |
57 // By getting the Threads_lock, we assure that no threads are about to start or |
398 } |
398 } |
399 #ifndef SERIALGC |
399 #ifndef SERIALGC |
400 // If there are any concurrent GC threads resume them. |
400 // If there are any concurrent GC threads resume them. |
401 if (UseConcMarkSweepGC) { |
401 if (UseConcMarkSweepGC) { |
402 ConcurrentMarkSweepThread::desynchronize(false); |
402 ConcurrentMarkSweepThread::desynchronize(false); |
403 } else { |
403 } else if (UseG1GC) { |
404 ConcurrentGCThread::safepoint_desynchronize(); |
404 ConcurrentGCThread::safepoint_desynchronize(); |
405 } |
405 } |
406 #endif // SERIALGC |
406 #endif // SERIALGC |
407 } |
407 } |
408 |
408 |