harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Fedotov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-4882) [drlvm][gc] vm throws an assertion when array size is big
Date Tue, 02 Oct 2007 12:40:51 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-4882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531773
] 

Alexei Fedotov commented on HARMONY-4882:
-----------------------------------------

The local problem is incorrect conditional which precedes the assertion. There might be more
problems along this code branch which was never taken before. 

> [drlvm][gc] vm throws an assertion when array size is big
> ---------------------------------------------------------
>
>                 Key: HARMONY-4882
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4882
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexei Fedotov
>
> The following line produce an assertion in VM code:
> Class.h:
>     unsigned calculate_array_size(int length) const {
>         [...]
>         assert((size & NEXT_TO_HIGH_BIT_SET_MASK) == 0); <<< crash
>         return size;
>     }
> The VM should not crash. It should behave according to spec: if it cannot allocate an
array, it should throw OutOfMemoryError.

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


Mime
View raw message