8221735: Shenandoah fails ctw/modules/jdk_management_agent.java with Traversal

Reviewed-by: rkennke, roland
This commit is contained in:
Aleksey Shipilev 2019-04-01 13:33:58 +02:00
parent 2cf209bd92
commit 18c4faf2cf

@ -3400,6 +3400,7 @@ const Type* ShenandoahEnqueueBarrierNode::Value(PhaseGVN* phase) const {
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;