harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Shipilev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-5636) [classlib][luni][performance] java.lang.reflect.Proxy cache should be unsynchronized
Date Thu, 27 Mar 2008 15:11:24 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-5636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582680#action_12582680

Aleksey Shipilev commented on HARMONY-5636:

Sure, the patch is not safe, it's just POC. According to my measurements, up to 15% of _contended_
synchronization on SerialBench running on 8-core  server originates from this location. The
reason for this is OOS.writeClassDesc call during the serialization.

I changed WeakHashMap to HashMap to avoid internal WeakHashMap's synchronization. This change
is POC too.

> [classlib][luni][performance] java.lang.reflect.Proxy cache should be unsynchronized
> ------------------------------------------------------------------------------------
>                 Key: HARMONY-5636
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5636
>             Project: Harmony
>          Issue Type: Improvement
>            Reporter: Aleksey Shipilev
>            Priority: Minor
>         Attachments: 0004-serial-isProxyClass.patch
> For now, the proxyCache in Proxy is synchronized, which lead to performance problems
with accessing Proxy.isProxyClass() from multiple threads at once.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message