8221735: Shenandoah fails ctw/modules/jdk_management_agent.java with Traversal
authorshade
Mon, 01 Apr 2019 13:33:58 +0200
changeset 54353 dfaa9daab43c
parent 54352 e0603b4537c3
child 54354 80830caaac6e
8221735: Shenandoah fails ctw/modules/jdk_management_agent.java with Traversal Reviewed-by: rkennke, roland
src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
--- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Mon Apr 01 10:04:22 2019 +0200
+++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp	Mon Apr 01 13:33:58 2019 +0200
@@ -3400,6 +3400,7 @@
 int ShenandoahEnqueueBarrierNode::needed(Node* n) {
   if (n == NULL ||
       n->is_Allocate() ||
+      n->Opcode() == Op_ShenandoahEnqueueBarrier ||
       n->bottom_type() == TypePtr::NULL_PTR ||
       (n->bottom_type()->make_oopptr() != NULL && n->bottom_type()->make_oopptr()->const_oop() != NULL)) {
     return NotNeeded;