8179527: Ineffective use of volatile hurts performance of Charset.atBugLevel()
    Kazunori Ogata 
    OGATAK at jp.ibm.com
       
    Tue Jun 27 08:12:45 UTC 2017
    
    
  
Hi Christoph, 
Thank you for redirecting this request to appropriate mailing lists.
Hi Aleksey,
Thank you for reviewing the patch.
Regards,
Ogata
Aleksey Shipilev <shade at redhat.com> wrote on 2017/06/27 15:58:56:
> From: Aleksey Shipilev <shade at redhat.com>
> To: "Langer, Christoph" <christoph.langer at sap.com>, Kazunori Ogata 
> <OGATAK at jp.ibm.com>, core-libs-dev <core-libs-dev at openjdk.java.net>, 
"nio-
> dev at openjdk.java.net" <nio-dev at openjdk.java.net>
> Cc: "ppc-aix-port-dev at openjdk.java.net" 
<ppc-aix-port-dev at openjdk.java.net>
> Date: 2017/06/27 15:59
> Subject: Re: 8179527: Ineffective use of volatile hurts performance of 
> Charset.atBugLevel()
> 
> On 06/27/2017 08:50 AM, Langer, Christoph wrote:
> > So, waiting for comments from other experts...
> 
> >> Webrev: http://cr.openjdk.java.net/~horii/8179527/webrev.00/
> 
> This patch is fine as stated.
> 
> Without volatile, there is a benign data race on the bugLevel field, 
which is
> okay, assuming "sun.nio.cs.bugLevel" never actually changes. Doing
> double-checked-locking seems excessive here, because we can accept more 
than one
> invocation of privilegedGetProperty.
> 
> -Aleksey
> 
> 
> 
> 
> [attachment "signature.asc" deleted by Kazunori Ogata/Japan/IBM] 
    
    
More information about the ppc-aix-port-dev
mailing list