You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Catherine Hope (JIRA)" <ji...@apache.org> on 2009/07/21 16:45:14 UTC

[jira] Closed: (HARMONY-6280) [classlib][concurrent] AtomicLong class fails with UnsatisfiedLinkError missing VMSupportsCS8

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

Catherine Hope closed HARMONY-6280.
-----------------------------------

    Resolution: Fixed

Verified

> [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
>            Assignee: Mark Hindess
>         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.