Skip to content

Remove dependency on sun.misc.Unsafe#547

Merged
brian-brazil merged 1 commit intoprometheus:masterfrom
apmasell:jigsaw_fix
May 7, 2020
Merged

Remove dependency on sun.misc.Unsafe#547
brian-brazil merged 1 commit intoprometheus:masterfrom
apmasell:jigsaw_fix

Conversation

@apmasell
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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