mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-13 01:13:10 +00:00
fix safepoint detection
This commit is contained in:
parent
7783d60948
commit
e39a2a6300
@ -1872,8 +1872,12 @@ void CountedLoopConverter::LoopStructure::build() {
|
||||
}
|
||||
|
||||
Node* safepoint = _back_control->in(0)->in(0);
|
||||
if (_loop->_child != nullptr && safepoint->Opcode() == Op_SafePoint) {
|
||||
_safepoint = safepoint->as_SafePoint();
|
||||
if (_loop->_child != nullptr) {
|
||||
if (safepoint->Opcode() == Op_SafePoint) {
|
||||
_safepoint = safepoint->as_SafePoint();
|
||||
} else {
|
||||
_safepoint = nullptr;
|
||||
}
|
||||
} else {
|
||||
_safepoint = _phase->find_safepoint(_back_control, _head, _loop);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user