Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/safepoint.cpp @ 845:df6caf649ff7
6700789: G1: Enable use of compressed oops with G1 heaps
Summary: Modifications to G1 so as to allow the use of compressed oops.
Reviewed-by: apetrusenko, coleenp, jmasa, kvn, never, phh, tonyp
author | ysr |
---|---|
date | Tue, 14 Jul 2009 15:40:39 -0700 |
parents | 7bb995fbd3c0 |
children | 87770dcf831b |
comparison
equal
deleted
inserted
replaced
839:bb18957ad21e | 845:df6caf649ff7 |
---|---|
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 |