RFR: 8330578: The VM creates instance of abstract class VirtualMachineError

Dean Long dlong at openjdk.org
Fri Apr 19 00:36:02 UTC 2024


On Thu, 18 Apr 2024 21:46:36 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> It's a bug that the VM creates an instance of the abstract class VirtualMachineError.  In the cases where we throw VME, we should throw OOM or StackOverflowError instead.
> 
> Tested with tier1-4.

Marked as reviewed by dlong (Reviewer).

src/hotspot/share/memory/universe.cpp line 1095:

> 1093:      tty->print_cr("Unable to link/verify VirtualMachineError class");
> 1094:      return false; // initialization failed
> 1095:   }

Do we still need to link VirtualMachineError above?

-------------

PR Review: https://git.openjdk.org/jdk/pull/18847#pullrequestreview-2010235137
PR Review Comment: https://git.openjdk.org/jdk/pull/18847#discussion_r1571554370


More information about the hotspot-dev mailing list