RFR (L): 8208671: Runtime, JFR, Serviceability changes to allow enabling -Wreorder

Thomas Schatzl thomas.schatzl at oracle.com
Thu Aug 2 15:08:34 UTC 2018


Hi again,

On Thu, 2018-08-02 at 14:51 +0200, Thomas Schatzl wrote:
> Hi,
> 
> On Thu, 2018-08-02 at 22:34 +1000, David Holmes wrote:
> > Hi Thomas,
> > 
> > On 2/08/2018 7:09 PM, Thomas Schatzl wrote:
> > > Hi all,
> > > 
> > >    there have been several suggestions to try to fix the Hotspot
> > > code to allow us to enable -Wreorder in the Hotspot sources.
> > 
> > Can you enlighten us on what -Wreorder is/does and so what changes
> > you are making please.
> 

  ... and answering the second part of the question: the changes
reorder the entries in the initialization lists to have them written
down in order of actual execution.

This helps spotting mistakes due to dependencies in these lists: while
this is not common, we have had such issues in the past (with G1). It
is very easy to spot these problems with a properly ordered
initialization list.

Thanks,
  Thomas



More information about the hotspot-dev mailing list