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

[jira] Commented: (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:comment-tabpanel&focusedCommentId=12733615#action_12733615 ] 

Mark Hindess commented on HARMONY-6280:
---------------------------------------

The patch didn't apply cleanly for me.  I suspect you hadn't updated your workspace since the concurrent updates I committed on Thursday.  However, I applied the changes manually at r796290.  Please confirm (and close this JIRA) if the changes are as you expected.


> [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.