Viktor Klang 3/2/2016

Futures in Scala 2.12 (part 8): Goodbye, sun.misc.Unsafe

Read Original

This technical blog post details the evolution of scala.concurrent.Future in Scala 2.12, specifically the removal of the sun.misc.Unsafe dependency. It explains the tri-state nature of a Future, the need for atomic Compare-And-Set operations, and the shift from using AtomicReferenceFieldUpdater and sun.misc.Unsafe to extending AtomicReference internally in DefaultPromise. The change improves platform compatibility and security while maintaining performance.

Futures in Scala 2.12 (part 8): Goodbye, sun.misc.Unsafe

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser