From ce3ca6ae45bc28b2aa2b440c6842f1cf3776af64 Mon Sep 17 00:00:00 2001 From: Quan Anh Mai Date: Sat, 13 Dec 2025 22:04:39 +0700 Subject: [PATCH] safepoints do not have a memory output --- src/hotspot/share/opto/memnode.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/hotspot/share/opto/memnode.cpp b/src/hotspot/share/opto/memnode.cpp index f2efe43d0fe..42999b18c29 100644 --- a/src/hotspot/share/opto/memnode.cpp +++ b/src/hotspot/share/opto/memnode.cpp @@ -979,12 +979,6 @@ Node* MemNode::find_previous_store(PhaseValues* phase) { int alias_idx = phase->C->get_alias_index(adr_type()); mem = mem->as_MergeMem()->memory_at(alias_idx); continue; - } else if (mem->is_Proj() && mem->in(0)->Opcode() == Op_SafePoint) { - // Pure safepoints do not modify heap memory - if (base != nullptr) { - mem = mem->in(0)->in(TypeFunc::Memory); - continue; - } } else if (mem->is_Proj() && mem->in(0)->is_Call()) { // We can walk past a call if we can prove that the call does not modify the memory we are // accessing, this is the case if the allocation has not escaped at this call