You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Aleksey Shipilev (JIRA)" <ji...@apache.org> on 2008/03/23 22:29:25 UTC
[jira] Updated: (HARMONY-5638) [drlvm][performance] String.intern()
should use unsynchronized fast-path
[ https://issues.apache.org/jira/browse/HARMONY-5638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksey Shipilev updated HARMONY-5638:
--------------------------------------
Attachment: 0006-serial-vmInternString.patch
0006-serial-vmInternString.patch
Proof-of-concept patch.
Eliminates 30% of contended locks for SerialBench, might improve the startup performance.
However, it has some pitfalls, at least rehash() can occur while tryIntern() thus resulting in NPE.
> [drlvm][performance] String.intern() should use unsynchronized fast-path
> ------------------------------------------------------------------------
>
> Key: HARMONY-5638
> URL: https://issues.apache.org/jira/browse/HARMONY-5638
> Project: Harmony
> Issue Type: Improvement
> Reporter: Aleksey Shipilev
> Attachments: 0006-serial-vmInternString.patch
>
>
> Current implementation on String.intern() synchronizes on entire put operation. Given the perspective large fraction of the strings are already interned, we might implement the fast-path lookup as unsynchronized part of put().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.