RRF: 8187123: (reflect) Class#getCanonicalName and Class#getSimpleName is a part of performance issue
Claes Redestad
claes.redestad at oracle.com
Wed May 2 12:25:28 UTC 2018
Hi,
On 2018-04-30 23:50, David Holmes wrote:
> Hi Claes,
>
> On 30/04/2018 10:49 PM, Claes Redestad wrote:
>> Webrev: http://cr.openjdk.java.net/~redestad/8187123/open.02/
>
> Given String's are immune to unsafe publication races, you should be
> able to drop the volatile modifiers. That might save a few more cycles.
Done. The volatile would help reduce racy creation of multiple String
for the same thing, but probably better on the whole to avoid a volatile
read and write.
/Claes
More information about the core-libs-dev
mailing list