JDK-8354489 : Some callers of VMError::report_and_die think it can return
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: New
  • Resolution: Unresolved
  • Submitted: 2025-04-14
  • Updated: 2025-04-14
Description
There are callers of VMError::report_and_die that have comments (and perhaps subsequent code) suggesting it can return if UseOSErrorReporting is enabled.  But that isn't true. VMError::report_and_die is [[noreturn]].

Relevant callers:
report_error in os_windows.cpp
report_vm_out_of_memory in debug.cpp