JDK-8311516 : JavaThread can continue executing in compiled code after switch to interpreter only mode
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 22
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-07-05
  • Updated: 2024-11-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25Unresolved
Related Reports
Relates :  
Description
When resolving a call from compiled code a JavaThread might call into one of these methods in SharedRuntime class: resolve_virtual_call_C, resolve_opt_virtual_call_C, resolve_static_call_C, handle_wrong_method, handle_wrong_method_ic_miss.
These are non-leaf methods, i.e. methods that transition to vm and then back to Java, where the JavaThread could be switched to interpreter only mode. But  we don't check that case when returning from these methods and always return the _from_compiled_entry from the resolved method which will point to the compiled entry if there was one (c2i otherwise).