harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy, Jing Lv (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4532) [classlib][luni] HashMap constructor should re-calculate the capacity
Date Wed, 25 Jul 2007 10:44:31 GMT

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

Jimmy, Jing Lv updated HARMONY-4532:

    Attachment: Harmony4532.diff

     This bug will only cause performance issues( &(bucketsize-1) will then make a bad
index), but no logic error will occur in get/put method. So no testcase can be written here.
     Would you please try my patch? Thanks!


> [classlib][luni] HashMap constructor should re-calculate the capacity
> ---------------------------------------------------------------------
>                 Key: HARMONY-4532
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4532
>             Project: Harmony
>          Issue Type: Improvement
>          Components: Classlib
>            Reporter: Jimmy, Jing Lv
>            Assignee: Leo Li
>         Attachments: Harmony4532.diff
> According to our hash map algorithm, we should re-calculate the capacity in the constructor
when the capacity is passed in as a parameter. Currently HashMap(int,float) lacks this re-calculation.

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

View raw message