Skip to content
Permalink
Browse files

8237369: Shenandoah: failed vmTestbase/nsk/jvmti/AttachOnDemand/attac…

…h021/TestDescription.java test

Reviewed-by: rkennke
  • Loading branch information
zhengyu123 committed Jan 16, 2020
1 parent 96f5699 commit 85255c54dae0ba46b4b529d332fb051cc7bdd610
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp
@@ -1330,7 +1330,12 @@ void ShenandoahHeap::object_iterate(ObjectClosure* cl) {

// Keep alive an object that was loaded with AS_NO_KEEPALIVE.
void ShenandoahHeap::keep_alive(oop obj) {
ShenandoahBarrierSet::barrier_set()->enqueue(obj);
if (is_concurrent_mark_in_progress()) {
ShenandoahBarrierSet::barrier_set()->enqueue(obj);
} else {
// Otherwise, it must be live, guaranteed by LRB
shenandoah_assert_marked_if(NULL, obj, has_forwarded_objects());
}
}

void ShenandoahHeap::heap_region_iterate(ShenandoahHeapRegionClosure* blk) const {

0 comments on commit 85255c5

Please sign in to comment.