Skip to content

Commit 90f0f1b

Browse files
Gergö BaranyYudi Zheng
authored andcommitted
8354443: [Graal] crash after deopt in TestG1BarrierGeneration.java
Reviewed-by: dnsimon, yzheng
1 parent d7e648b commit 90f0f1b

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/hotspot/share/code/nmethod.inline.hpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,12 @@
3333

3434
inline bool nmethod::is_deopt_pc(address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); }
3535

36-
// When using JVMCI the address might be off by the size of a call instruction.
3736
inline bool nmethod::is_deopt_entry(address pc) {
38-
return pc == deopt_handler_begin()
39-
#if INCLUDE_JVMCI
40-
|| (is_compiled_by_jvmci() && pc == (deopt_handler_begin() + NativeCall::byte_size()))
41-
#endif
42-
;
37+
return pc == deopt_handler_begin();
4338
}
4439

4540
inline bool nmethod::is_deopt_mh_entry(address pc) {
46-
return pc == deopt_mh_handler_begin()
47-
#if INCLUDE_JVMCI
48-
|| (is_compiled_by_jvmci() && pc == (deopt_mh_handler_begin() + NativeCall::byte_size()))
49-
#endif
50-
;
41+
return pc == deopt_mh_handler_begin();
5142
}
5243

5344
// class ExceptionCache methods

0 commit comments

Comments
 (0)