From 6707116dd4af54adc9c3db880579d4a55d96735d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sat, 9 Apr 2011 21:19:49 -0600 Subject: [PATCH] implement sun.misc.Unsafe.addressSize --- src/classpath-openjdk.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index 1a2897c093..d432c7f289 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -2179,6 +2179,13 @@ Avian_sun_misc_Unsafe_registerNatives // ignore } +extern "C" JNIEXPORT int64_t +Avian_sun_misc_Unsafe_addressSize +(Thread*, object, uintptr_t*) +{ + return BytesPerWord; +} + extern "C" JNIEXPORT int64_t Avian_sun_misc_Unsafe_defineClass__Ljava_lang_String_2_3BIILjava_lang_ClassLoader_2Ljava_security_ProtectionDomain_2 (Thread* t, object, uintptr_t* arguments)