harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1873) std::sort crash in jitrino code generator
Date Mon, 16 Oct 2006 09:23:36 GMT
    [ 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


View raw message