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 2008/01/14 18:56:34 UTC

[jira] Created: (HARMONY-5386) [drlvm][verifier] Unaligned access to memory on IPF

[drlvm][verifier] Unaligned access to memory on IPF
---------------------------------------------------

                 Key: HARMONY-5386
                 URL: https://issues.apache.org/jira/browse/HARMONY-5386
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: Linux IPF
            Reporter: Gregory Shimansky
            Priority: Minor


When running DRLVM on IPF it gives errors about unaligned access to the memory. The access happens in verifier in instr_props.h:287 when accessing propHashTable pointer. It happens to be aligned to 4 bytes, not to 8 as required for an array of pointers.

It happens because verifier's internal allocator doesn't align returned pointers to any value. The sequence of allocations looks like this: 1024 bytes, 4 bytes, 128 bytes. The 3rd allocation is not aligned because it goes after an allocation of 4 bytes. This is exactly the place where propHashTable is allocated in the code.

To make code work correctly on IPF it is either necessary to change verifier's internal allocator to make it possible to align returned pointers or it is necessary to align pointers returned by allocator in each case individually.

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


[jira] Assigned: (HARMONY-5386) [drlvm][verifier] Unaligned access to memory on IPF

Posted by "Mikhail Loenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-5386?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikhail Loenko reassigned HARMONY-5386:
---------------------------------------

    Assignee: Mikhail Loenko

> [drlvm][verifier] Unaligned access to memory on IPF
> ---------------------------------------------------
>
>                 Key: HARMONY-5386
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5386
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Linux IPF
>            Reporter: Gregory Shimansky
>            Assignee: Mikhail Loenko
>            Priority: Minor
>
> When running DRLVM on IPF it gives errors about unaligned access to the memory. The access happens in verifier in instr_props.h:287 when accessing propHashTable pointer. It happens to be aligned to 4 bytes, not to 8 as required for an array of pointers.
> It happens because verifier's internal allocator doesn't align returned pointers to any value. The sequence of allocations looks like this: 1024 bytes, 4 bytes, 128 bytes. The 3rd allocation is not aligned because it goes after an allocation of 4 bytes. This is exactly the place where propHashTable is allocated in the code.
> To make code work correctly on IPF it is either necessary to change verifier's internal allocator to make it possible to align returned pointers or it is necessary to align pointers returned by allocator in each case individually.

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