-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Description
Now that JCTools is available on Maven Central (http://search.maven.org/#search%7Cga%7C1%7Cjctools) we should consider depending on it directly instead of copy/pasting as we have done so far: https://github.com/ReactiveX/RxJava/tree/1.x/src/main/java/rx/internal/util/unsafe (note the README that provides background and details).
There are a few considerations:
-
RxJava is a "zero dependency" project so the dependency will need to be shaded (package names changed to be inside RxJava) so that it becomes part of the RxJava jar.
-
Byte size of pulling in code from JCTools that we don't need. This affects Android particularly.
-
Use of JCTools must all be done behind a conditional check
UnsafeAccess.isUnsafeAvailable()
otherwise RxJava will not work on platforms withoutsun.misc.Unsafe
.