Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/ikvm-fork.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfrijters <jfrijters>2008-08-21 10:05:24 +0400
committerjfrijters <jfrijters>2008-08-21 10:05:24 +0400
commitb91bce8821e7b1d0f8ab62b2cc4077a907a76dbd (patch)
tree4253b251b11cd9ba3fc0e53135e9907b39b50b7a /openjdk/map.xml
parent684cdf651ef75825a74aadbf4127e7ebbc7685ef (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.xml11
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="&lt;init&gt;" 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;">