JDK-8249617 : Preallocate InternalError exceptions for async_unsafe_access error
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2020-07-16
  • Updated: 2020-07-21
  • Resolved: 2020-07-21
Related Reports
Relates :  
Description
The exceptions should be preallocated in Universe so that async exception installation doesn't call Java code, which is a bad time for calling Java code.


Comments
Per comments, closing as will not fix
21-07-2020

With pre-allocation you don't get a stacktrace, which is pretty important for this particular failure mode. The current overall mechanism for signalling and detecting the need for these exceptions is problematic. It would be better if we had more direct control over exactly when we will recognize a fault occurred, and then we could safely execute the necessary Java code.
16-07-2020