8221735: Shenandoah fails ctw/modules/jdk_management_agent.java with Traversal
Reviewed-by: rkennke, roland
--- 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;