[8u] RFR 8233197: Invert JvmtiExport::post_vm_initialized() and Jfr:on_vm_start() start-up order for correct option parsing

Mario Torre neugens at redhat.com
Tue May 26 12:59:36 UTC 2020


Hi Jaroslav,

The patch looks good to me, just a minor nit (but I don't need a
re-review for this change) is to check the indentation of the
preprocessor:

+    #if INCLUDE_JFR
+    // The VM creates & returns objects of this class. Make sure it's
initialized.
+    initialize_class(vmSymbols::java_lang_Class(), CHECK_0);
+    #endif

Should indent at beginning of the line, like:

+#if INCLUDE_JFR
+    // The VM creates & returns objects of this class. Make sure it's
initialized.
+    initialize_class(vmSymbols::java_lang_Class(), CHECK_0);
+#endif

Likewise the block below that.

We still need Andrew to approve before you can push though ;)

Cheers,
Mario

On Tue, May 26, 2020 at 12:13 PM Jaroslav Bachorík

<jaroslav.bachorik at datadoghq.com> wrote:
>
> Gentle ping?
>
> On Wed, May 20, 2020 at 11:30 PM Jaroslav Bachorík
> <jaroslav.bachorik at datadoghq.com> wrote:
> >
> > On Fri, May 15, 2020 at 5:53 PM Jaroslav Bachorík
> > <jaroslav.bachorik at datadoghq.com> wrote:
> > >
> > > Hi Andrew,
> > >
> > > On Fri, May 15, 2020 at 3:35 PM Andrew Haley <aph at redhat.com> wrote:
> > > >
> > > > On 5/15/20 1:01 PM, Mario Torre wrote:
> > > > > The patch is good to go for my side, we still need to wait for the
> > > > > maintainer to change the status to jdk8u-fix-yes before you can push
> > > > > though.
> > > >
> > > > I'm tempted to say yes. However, I get frightened whenever I see any
> > > > change to HotSpot initialization code, particularly things that change
> > > > the order in which classes are initialized. Can you make the early
> > > > call to initialize_class(vmSymbols::java_lang_Class()) JFR-only?
> > >
> > > I can try that. Let me get back with the result.
> >
> > I put the early java_lang_Class initialization in `#if INCLUDE_JFR`
> > block. The original java_lang_Class initialization location was
> > enclosed in an inverted `#if INCLUDE_JFR` block to ensure the original
> > behaviour if JFR is not enabled in build config.
> >
> > Webrev: http://cr.openjdk.java.net/~jbachorik/8233197/hotspot/webrev.02/
> >
> > Thanks,
> >
> > -JB-
> >
> > >
> > > -JB-
> > >
> > > >
> > > > --
> > > > Andrew Haley  (he/him)
> > > > Java Platform Lead Engineer
> > > > Red Hat UK Ltd. <https://www.redhat.com>
> > > > https://keybase.io/andrewhaley
> > > > EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
> > > >
>


--
Mario Torre
Associate Manager, Software Engineering
Red Hat GmbH <https://www.redhat.com>
9704 A60C B4BE A8B8 0F30  9205 5D7E 4952 3F65 7898



More information about the jdk8u-dev mailing list