diff options
author | jfrijters <jfrijters> | 2008-08-21 10:05:24 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2008-08-21 10:05:24 +0400 |
commit | b91bce8821e7b1d0f8ab62b2cc4077a907a76dbd (patch) | |
tree | 4253b251b11cd9ba3fc0e53135e9907b39b50b7a /openjdk/map.xml | |
parent | 684cdf651ef75825a74aadbf4127e7ebbc7685ef (diff) |
Added helper methods to no longer require reflection to instantiate DirectByteBuffer from JNI.
Diffstat (limited to 'openjdk/map.xml')
-rw-r--r-- | openjdk/map.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openjdk/map.xml b/openjdk/map.xml index 90b994eb..92e2eafc 100644 --- a/openjdk/map.xml +++ b/openjdk/map.xml @@ -1760,6 +1760,17 @@ </body> </method> </class> + <class name="java.nio.DirectByteBuffer"> + <!-- add a constructor accessor for JNI --> + <method name="__new" sig="(JI)Ljava.nio.DirectByteBuffer;" modifiers="static"> + <body> + <ldarg_0 /> + <ldarg_1 /> + <newobj class="java.nio.DirectByteBuffer" name="<init>" sig="(JI)V" /> + <ret /> + </body> + </method> + </class> <class name="sun.reflect.Reflection"> <!-- we manually hook up this native method, to prevent inlining and tail-call optimizations --> <method name="getCallerClass" sig="(I)Ljava.lang.Class;"> |