Monix v2.1.1 Release Notes
Release Date: 2016-11-22 // over 7 years ago-
🔖 Version
2.1.1
is a minor release, binary compatible with2.1.0
, 🛠 fixing the compatibility with older Android versions.The gist is that older Android versions are incompatible with our usage of
sun.misc.Unsafe
. And this might also be true of other platforms as well, like the upcoming Java 9.Therefore we are doing two things:
- we introduce new
monix.execution.atomic.Atomic
implementations that make use ofAtomicFieldUpdater
classes, for those platforms that do not supportsun.misc.Unsafe
; hopefully this will perform well on top of Java 9, see this post by Aleksey Shipilёv: https://shipilev.net/blog/2015/faster-atomic-fu/\ - in our usage of JCTools,
since these rely heavily on
sun.misc.Unsafe
, we fallback to implementations fromorg.jctools.queues.atomic
, as these are safe to use
The issues being addressed:
- Bug #269: Observable throws NoSuchFieldException (via jctools) on Android
- 👍 Issue #270: Add support
for platforms that do not have
sun.misc.Unsafe
(with the corresponding PR #272)
- we introduce new