harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Catherine Hope (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6280) [classlib][concurrent] AtomicLong class fails with UnsatisfiedLinkError missing VMSupportsCS8
Date Tue, 21 Jul 2009 12:01:15 GMT

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

Catherine Hope updated HARMONY-6280:

    Attachment: 6280-patch.txt

> [classlib][concurrent] AtomicLong class fails with UnsatisfiedLinkError missing VMSupportsCS8
> ---------------------------------------------------------------------------------------------
>                 Key: HARMONY-6280
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6280
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: all, running with IBM VME
>            Reporter: Catherine Hope
>         Attachments: 6280-patch.txt
> The AtomicLong class fails to load with an UnsatisfiedLinkError when running on IBM VME,
because the VMSupportsCS8 function is not provided by the VM.  It calls this function to set
the AtomicLong.VM_SUPPORTS_LONG_CAS field which is referenced by AtomicLongFieldUpdater to
switch between using different field updaters.
> The Harmony Select build works around this by patching the class to always set AtomicLong.VM_SUPPORTS_LONG_CAS
to true.
> The proposed fix it to try to use the VMSupportsCS8 function, but catch the UnsatisfieldLinkError
and set the field to default to true in that case.

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

View raw message