MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
966 stars 133 forks source link

Add support for putDouble and getDouble from Unsafe. #715

Closed fgnm closed 1 year ago

fgnm commented 1 year ago

As seen in 9d99692f785588dc18c63f7cbad2ed628e97fc3d , I add a support for double too. I spot this while using Kryo library, quite popular in libGDX world (https://github.com/EsotericSoftware/kryo/blob/master/src/com/esotericsoftware/kryo/serializers/UnsafeField.java#L214).

The change should be quite harmless, but someone more expert then me should really look at it carefully. I'm just proposing a fix, maybe it's wrong, but I'd really appreciate to get this fixed in a way or another... Seems a small feature but has a huge impact in my use case.

Many thanks!