Skip to content

Conversation

@apmasell
Copy link
Contributor

@apmasell apmasell commented May 7, 2020

This replaces sun.misc.Unsafe with
java.util.concurrent.atomic.AtomicLongFieldUpdater and
AtomicIntegerFieldUpdater. This is to enable compatibility with Jigsaw
modules where sun.misc.Unsafe is no longer available.

Closes #468

@brian-brazil
Copy link
Contributor

Can you add the DCO?

This replaces `sun.misc.Unsafe` with
`java.util.concurrent.atomic.AtomicLongFieldUpdater` and
`AtomicIntegerFieldUpdater`. This is to enable compatibility with Jigsaw
modules where `sun.misc.Unsafe` is no longer available.

Closes #468

Signed-off-by: Andre Masella <andre@masella.name>
@apmasell
Copy link
Contributor Author

apmasell commented May 7, 2020

Added.

@brian-brazil brian-brazil merged commit fe42313 into prometheus:master May 7, 2020
@brian-brazil
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

The class sun.misc.Unsafe is not avilable in JDK 11

2 participants