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

[jira] Commented: (HARMONY-1873) std::sort crash in jitrino code generator

    [ http://issues.apache.org/jira/browse/HARMONY-1873?page=comments#action_12442522 ] 
            
Mikhail Fursov commented on HARMONY-1873:
-----------------------------------------

When I wrote the code like "v1 > v2 ? true : (v1 < v2 ? false: e1 < e2);" to compare doubles I thought about 
1) With a static profiler the values of doubles are predefined - the == equality comparison is OK.
2) The comparison must return stable results for equal doubles even if method arguments (edges) are swaped

I'm OK with this patch if it really helps to improve stability. But accepting it we claim that GCC v3.3.3 has bugs with doubles optimization.


> std::sort crash in jitrino code generator
> -----------------------------------------
>
>                 Key: HARMONY-1873
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1873
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux platform, gcc version 3.3.3.
>            Reporter: Natalya Golovleva
>         Attachments: std_sort.patch
>
>
> In some cases std::sort used in jitrino code generator sources method is crashed on Linux.
> The failure is reproduced with gcc 3.3.3.
> The failure is not reproduced with gcc 4.1.0.
> To avoid crash with gcc 3.3.3 the sort comparator was simplified.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira