RFR (S): 8213142: Use RAII to set the scanning source in G1ScanEvacuatedObjClosure

Thomas Schatzl thomas.schatzl at oracle.com
Mon Nov 5 13:54:38 UTC 2018


Hi Sangheon, Kim,

On Tue, 2018-10-30 at 14:39 -0700, sangheon.kim at oracle.com wrote:
> Hi Thomas,
> 
> On 10/30/18 3:42 AM, Thomas Schatzl wrote:
> > Hi all,
> > 
> >    in the review for JDK-8212911 Kim suggested to use RAII to set
> > the _scanning_in_young field of the G1ScanEvacuatedObjClosure
> > class.
> > This also allows making sure that the field is actually initialized
> > when used.
> > 
> > This is the implementation for this idea.
> > 
> > CR:
> > https://bugs.openjdk.java.net/browse/JDK-8213142
> > Webrev:
> > http://cr.openjdk.java.net/~tschatzl/8213142/webrev/
> 
> Looks good to me.
> 

  thanks for your reviews - you might have noticed the change has
already been pushed last week.

Thomas





More information about the hotspot-gc-dev mailing list