Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp @ 6008:b632e80fc9dc
4988100: oop_verify_old_oop appears to be dead
Summary: removed oop_verify_old_oop and allow_dirty. Also reviewed by: alexlamsl@gmail.com
Reviewed-by: jmasa, jwilhelm
author | brutisso |
---|---|
date | Mon, 16 Apr 2012 08:57:18 +0200 |
parents | d903bf750e9f |
children | 9f059abe8cf2 |
comparison
equal
deleted
inserted
replaced
6007:5c86f8211d1e | 6008:b632e80fc9dc |
---|---|
3107 cmsSpace()->prepare_for_verify(); | 3107 cmsSpace()->prepare_for_verify(); |
3108 } | 3108 } |
3109 } | 3109 } |
3110 | 3110 |
3111 void | 3111 void |
3112 ConcurrentMarkSweepGeneration::verify(bool allow_dirty /* ignored */) { | 3112 ConcurrentMarkSweepGeneration::verify() { |
3113 // Locks are normally acquired/released in gc_prologue/gc_epilogue, but those | 3113 // Locks are normally acquired/released in gc_prologue/gc_epilogue, but those |
3114 // are not called when the heap is verified during universe initialization and | 3114 // are not called when the heap is verified during universe initialization and |
3115 // at vm shutdown. | 3115 // at vm shutdown. |
3116 if (freelistLock()->owned_by_self()) { | 3116 if (freelistLock()->owned_by_self()) { |
3117 cmsSpace()->verify(false /* ignored */); | 3117 cmsSpace()->verify(); |
3118 } else { | 3118 } else { |
3119 MutexLockerEx fll(freelistLock(), Mutex::_no_safepoint_check_flag); | 3119 MutexLockerEx fll(freelistLock(), Mutex::_no_safepoint_check_flag); |
3120 cmsSpace()->verify(false /* ignored */); | 3120 cmsSpace()->verify(); |
3121 } | 3121 } |
3122 } | 3122 } |
3123 | 3123 |
3124 void CMSCollector::verify(bool allow_dirty /* ignored */) { | 3124 void CMSCollector::verify() { |
3125 _cmsGen->verify(allow_dirty); | 3125 _cmsGen->verify(); |
3126 _permGen->verify(allow_dirty); | 3126 _permGen->verify(); |
3127 } | 3127 } |
3128 | 3128 |
3129 #ifndef PRODUCT | 3129 #ifndef PRODUCT |
3130 bool CMSCollector::overflow_list_is_empty() const { | 3130 bool CMSCollector::overflow_list_is_empty() const { |
3131 assert(_num_par_pushes >= 0, "Inconsistency"); | 3131 assert(_num_par_pushes >= 0, "Inconsistency"); |