Support for sun.misc.Unsafe.arrayBaseOffset(Object[].class)
Vittorio Rigamonti <[email protected]> Mon, 10 Apr 2017 11:02:26 +0200
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <CADE_1G83JwH46dKT6hWo1CcYopLqqpj18sSqhXDn6BNpEvTrxA@mail.gmail.com> |
--===============1212552627365704262== Content-Type: multipart/alternative; boundary=f403045f526af654a4054ccc3b80 --f403045f526af654a4054ccc3b80 Content-Type: text/plain; charset=UTF-8 Hi ikvm-developers, I'm working on [1] project and I'm using IKVM to run the java test suite developed for the Java client [2] against the dotnet-client. IKVM works very well and saved me lot of time, but I'm now facing an issue [3] in running Java tests that use sun.misc.Unsafe class. What seems to happen is that running in IKVM arrayBaseOffset returns an unexpected value (not 2 and not 3) and causes an exception here [4] I've read that java Unsafe is not fully supported, do you have plan to work on this? Can you suggest me a workaround for now? I've seen something related in message [5] Thank you! Vittorio [1] https://github.com/rigazilla/dotnet-client [2] https://github.com/infinispan/infinispan/tree/master/client [3] https://gist.github.com/rigazilla/4be552e2c1375bde21da890e2a58fe69 [4] https://github.com/ben-manes/caffeine/blob/v2.4.0/caffeine/src/main/java/com/github/benmanes/caffeine/cache/MpscGrowableArrayQueue.java#L598 [4] https://sourceforge.net/p/ikvm/mailman/message/35520859/ --f403045f526af654a4054ccc3b80 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div>Hi ikvm-developers,<br><br></div>I'm wo= rking on [1] project and I'm using IKVM to run the java test suite deve= loped for the Java client [2] against the dotnet-client.<br></div>IKVM work= s very well and saved me lot of time, but I'm now facing an issue [3] i= n running Java tests that use sun.misc.Unsafe class.<br></div><div>What see= ms to happen is that running in IKVM arrayBaseOffset returns an unexpected = value (not 2 and not 3) and causes an exception here [4]<br><br></div><div>= I've read that java Unsafe is not fully supported, do you have plan to = work on this?<br></div><div>Can you suggest me a workaround for now?<br><br= ></div><div>I've seen something related in message [5]<br><br></div><di= v>Thank you!<br><br></div><div>Vittorio<br></div><div><div><br><br><br><br>= <br><br>[1] <a href=3D"https://github.com/rigazilla/dotnet-client">https://= github.com/rigazilla/dotnet-client</a><br>[2] <a href=3D"https://github.com= /infinispan/infinispan/tree/master/client">https://github.com/infinispan/in= finispan/tree/master/client</a><br>[3] <a href=3D"https://gist.github.com/r= igazilla/4be552e2c1375bde21da890e2a58fe69">https://gist.github.com/rigazill= a/4be552e2c1375bde21da890e2a58fe69</a><br>[4] <a href=3D"https://github.com= /ben-manes/caffeine/blob/v2.4.0/caffeine/src/main/java/com/github/benmanes/= caffeine/cache/MpscGrowableArrayQueue.java#L598">https://github.com/ben-man= es/caffeine/blob/v2.4.0/caffeine/src/main/java/com/github/benmanes/caffeine= /cache/MpscGrowableArrayQueue.java#L598</a><br>[4] <a href=3D"https://sourc= eforge.net/p/ikvm/mailman/message/35520859/">https://sourceforge.net/p/ikvm= /mailman/message/35520859/</a><br></div></div></div> --f403045f526af654a4054ccc3b80-- --===============1212552627365704262== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============1212552627365704262== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers --===============1212552627365704262==--