Am 30.11.2015 um 12:50 schrieb Devosh Mathivanan:
> Kryo Team,
>
> It seems the package "sun.misc.Unsafe" (kryo uses it for fast
> serialization/deserialization) is going to be removed in future versions of
> Java... if there are no altternatives for "sun.misc.Unsafe".. we won't be
> able to make seamless updates. What's your catch on this update? Will Kryo
> work on any alternatives?
Well, for completeness, also take a look here:
http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-April/017021.html
So they want private APIs to go away, but they also want to offer
alternatives.
Also, there's
http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-April/017020.html which
essentially says "we plan to allow access to internals anyway with the
proper -XX flag, unless in a context with a security manager". Which I
think is reasonable - Unsafe can be used to circumvent it.
Still, Kryo needs to identify the internal APIs it's using (some
messages mention running jdeps to find that out) and getting into
contact with the jigsaw mailing list to get the use heard, and/or the
Unsafe usage reported in JIRA. Maybe describe the alternate strategies
that Kryo uses and discuss ways to make them as fast as Unsafe.
Regards,
Jo