Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for platforms that do not have sun.misc.Unsafe #270

Closed
alexandru opened this issue Nov 17, 2016 · 3 comments
Closed

Add support for platforms that do not have sun.misc.Unsafe #270

alexandru opened this issue Nov 17, 2016 · 3 comments

Comments

@alexandru
Copy link
Member

We've got problems with Android at least and possibly with the upcoming Java 9. See related issue #269.

  1. the Atomic classes should support an Unsafe-free version, based on "atomic field updaters", supported since Java 5, see for example AtomicIntegerFieldUpdate as sample
  2. we need to either fork the required JCTools implementations or find a replacement to be used for platforms that don't support Unsafe
@nitsanw
Copy link

nitsanw commented Nov 17, 2016

You can use the org.jctools.queues.atomic.* queues when Unsafe is not available.
From #269 it would seem this can also be fixed with a patch to UnsafeAccess.

@alexandru
Copy link
Member Author

@nitsanw issue #269 can be fixed with a patch to JCTools' UnsafeAccess, I was preparing it.

@alexandru
Copy link
Member Author

@nitsanw see I've created a pull request, let me know what you think: JCTools/JCTools#141

/cc @taig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants