harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Ozhdikhin (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5014) [drlvm][jit][opt] "instanceof" breaks scalar replacement in the new HashMap implementation
Date Fri, 23 Nov 2007 12:36:44 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Pavel Ozhdikhin updated HARMONY-5014:

    Attachment: H5014.patch

The hvn pass added before escape propagates type info and removes redundant object checks
which prevented these object to be scalarized.

> [drlvm][jit][opt] "instanceof" breaks scalar replacement in the new HashMap implementation
> ------------------------------------------------------------------------------------------
>                 Key: HARMONY-5014
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5014
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Dmitry Pronichkin
>         Attachments: H5014.patch
> The new HashMap implementation made by Tim Ellison came into collision with the following
problem: scalar replacement for HashMap.get(Integer.valueOf(..)) is not working. The reason
is that the Integer object is not scalarized because of "instanceof" instruction. But escape
analysis knows the real type of the key and it can evaluate "instanceof" making possible for
the key to be scalarized.

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

View raw message