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] Updated: (HARMONY-5638) [drlvm][performance] String.intern() should use unsynchronized fast-path
Date Sun, 23 Mar 2008 21:29:25 GMT

     [ 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

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.

View raw message