Help with adding a native method
staffan.larsen at oracle.com
Wed Mar 21 08:44:07 PDT 2012
Read the following thread. The error looks very similar and perhaps there is some good information in there.
On 21 mar 2012, at 16:18, Ilya Mirsky wrote:
> Following my post from a week ago, I'm trying to add a native method to the unsafe class.
> For a start I'm trying to duplicate an existing method (CompareAndSwap).
> I added the new method, and registered it in the unsafe.cpp file and in vmSymbols.hpp (a patch is attached).
> When I'm compiling the jdk I get the following error from test_gamma:
> cd linux_i486_compiler2/product && ./test_gamma
> java full version "1.6.0_22-b22"
> Using java runtime at: /usr/lib/jvm/java-6-openjdk/jre
> Error occurred during initialization of VM
> at java.util.Hashtable.put(Hashtable.java:411)
> at java.lang.System.initProperties(Native Method)
> at java.lang.System.initializeSystemClass(System.java:1069)
> What am I doing wrong?
> Any help will be highly appreciated
> Best Regards,
> Ilya Mirsky
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-dev