RFR: 8330578: The VM creates instance of abstract class VirtualMachineError [v3]

Coleen Phillimore coleenp at openjdk.org
Fri Apr 19 12:18:14 UTC 2024


On Fri, 19 Apr 2024 12:05:43 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> 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?
>
> Good question.  I don't know if we have to link and initialize it.  We need the Klass because there are subclass checks.

I put this in the commit comment.  We don't need to explicitly do anything with VME in universe because the code just below this will link and initialize and create an instance of StackOverflowError and that'll link VME as a super class.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18847#discussion_r1572279043


More information about the hotspot-dev mailing list