Skip to content

Commit a77c397

Browse files
Revert now useless fix
1 parent 2bf3f27 commit a77c397

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: src/hotspot/share/opto/library_call.cpp

+1-6
Original file line numberDiff line numberDiff line change
@@ -4312,12 +4312,7 @@ Node* LibraryCallKit::generate_array_guard_common(Node* kls, RegionNode* region,
43124312
if (obj != nullptr && is_array_ctrl != nullptr && is_array_ctrl != top()) {
43134313
// Keep track of the fact that 'obj' is an array to prevent
43144314
// array specific accesses from floating above the guard.
4315-
Node* cast = _gvn.transform(new CastPPNode(is_array_ctrl, *obj, TypeAryPtr::BOTTOM));
4316-
// Check for top because in rare cases, the type system can determine that
4317-
// the object can't be an array but the layout helper check is not folded.
4318-
if (!cast->is_top()) {
4319-
*obj = cast;
4320-
}
4315+
*obj = _gvn.transform(new CastPPNode(is_array_ctrl, *obj, TypeAryPtr::BOTTOM));
43214316
}
43224317
return ctrl;
43234318
}

0 commit comments

Comments
 (0)