mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6689653: JMapPerm fails with UseConcMarkSweepIncGC and compressed oops off
Added safe_object_iterate() for use by JMapPerm. Reviewed-by: tonyp
This commit is contained in:
parent
34c4172bfe
commit
3474623106
16 changed files with 100 additions and 2 deletions
|
@ -3017,6 +3017,16 @@ ConcurrentMarkSweepGeneration::object_iterate(ObjectClosure* cl) {
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
ConcurrentMarkSweepGeneration::safe_object_iterate(ObjectClosure* cl) {
|
||||
if (freelistLock()->owned_by_self()) {
|
||||
Generation::safe_object_iterate(cl);
|
||||
} else {
|
||||
MutexLockerEx x(freelistLock(), Mutex::_no_safepoint_check_flag);
|
||||
Generation::safe_object_iterate(cl);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ConcurrentMarkSweepGeneration::pre_adjust_pointers() {
|
||||
}
|
||||
|
@ -7001,7 +7011,6 @@ void MarkFromRootsClosure::scanOopsInOop(HeapWord* ptr) {
|
|||
_mut->clear_range(mr);
|
||||
}
|
||||
DEBUG_ONLY(})
|
||||
|
||||
// Note: the finger doesn't advance while we drain
|
||||
// the stack below.
|
||||
PushOrMarkClosure pushOrMarkClosure(_collector,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue