RFR: 8333300: [JVMCI] add support for generational ZGC

Doug Simon dnsimon at openjdk.org
Thu May 30 20:51:02 UTC 2024


On Thu, 30 May 2024 20:37:09 GMT, Tom Rodriguez <never at openjdk.org> wrote:

> This exposes the required values for JVMCI to support generational ZGC.  It includes a few things worth mentioning.  JVMCI still exports XBarrierSetRuntime as fields in CompilerToVM::Data under the original name of ZBarrierSetRuntime.  I have exported the XBarrierSetRuntime and ZBarrierSetRuntime functions as addresses under their actual name.  This permits backward compatibility until all the required parts are in place.  We can eventually delete the CompilerToVM::Data names.
> 
> I added ZBarrierSetRuntime::load_barrier_on_oop_array paralleling XBarrierSetRuntime::load_barrier_on_oop_array as we use that for a vector barrier.  I could create the function as part of JVMCIRuntime if there are any concerns about including that in the ZGC core.

Marked as reviewed by dnsimon (Reviewer).

src/hotspot/share/jvmci/jvmci_globals.cpp line 233:

> 231:     // Check if selected GC is supported by JVMCI and Java compiler
> 232:     if (!gc_supports_jvmci()) {
> 233:       fatal("JVMIC does not support the selected GC");

JVMIC -> JVMCI

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

PR Review: https://git.openjdk.org/jdk/pull/19490#pullrequestreview-2089344199
PR Review Comment: https://git.openjdk.org/jdk/pull/19490#discussion_r1621411444


More information about the hotspot-dev mailing list