You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/10/30 16:23:50 UTC

[jira] Updated: (HARMONY-5040) [drlvm][classloader] Java field ordering must be preserved

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

Gregory Shimansky updated HARMONY-5040:
---------------------------------------

    Summary: [drlvm][classloader] Java field ordering must be preserved  (was: [drlvm] Java field ordering must be preserved)

> [drlvm][classloader] Java field ordering must be preserved
> ----------------------------------------------------------
>
>                 Key: HARMONY-5040
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5040
>             Project: Harmony
>          Issue Type: Improvement
>          Components: DRLVM
>            Reporter: Aleksey Shipilev
>         Attachments: fo-stable-1.patch
>
>
> Current implementation of class support in Harmony sorts the class fields decrementally by size to avoid misalignment. However, it's done with quicksort which is known to be unstable (e.g. there are no guarantees that order of elements with equal keys will not be changed). That lead to shaking Java field order which could be optimized to achieve the spatial locality. 
> Proposed patch changes the sorting algorithm to bubblesort, which is known to be stable. That's performance-safe since average field count is not high.

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