mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +00:00
move SystemClassLoader and Runtime.dumpHeap to avian package
This commit is contained in:
parent
9682d63b84
commit
31d9700c9b
@ -8,7 +8,7 @@
|
|||||||
There is NO WARRANTY for this software. See license.txt for
|
There is NO WARRANTY for this software. See license.txt for
|
||||||
details. */
|
details. */
|
||||||
|
|
||||||
package java.lang;
|
package avian;
|
||||||
|
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
@ -75,8 +75,6 @@ public class Runtime {
|
|||||||
|
|
||||||
public native long totalMemory();
|
public native long totalMemory();
|
||||||
|
|
||||||
public static native void dumpHeap(String outputFile);
|
|
||||||
|
|
||||||
private static class MyProcess extends Process {
|
private static class MyProcess extends Process {
|
||||||
private long pid;
|
private long pid;
|
||||||
private final int in;
|
private final int in;
|
||||||
|
@ -167,7 +167,7 @@ Avian_java_lang_ClassLoader_defineClass
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT int64_t JNICALL
|
extern "C" JNIEXPORT int64_t JNICALL
|
||||||
Avian_java_lang_SystemClassLoader_findLoadedClass
|
Avian_avian_SystemClassLoader_findLoadedClass
|
||||||
(Thread* t, object, uintptr_t* arguments)
|
(Thread* t, object, uintptr_t* arguments)
|
||||||
{
|
{
|
||||||
object name = reinterpret_cast<object>(arguments[1]);
|
object name = reinterpret_cast<object>(arguments[1]);
|
||||||
@ -176,7 +176,7 @@ Avian_java_lang_SystemClassLoader_findLoadedClass
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT int64_t JNICALL
|
extern "C" JNIEXPORT int64_t JNICALL
|
||||||
Avian_java_lang_SystemClassLoader_findClass
|
Avian_avian_SystemClassLoader_findClass
|
||||||
(Thread* t, object, uintptr_t* arguments)
|
(Thread* t, object, uintptr_t* arguments)
|
||||||
{
|
{
|
||||||
object name = reinterpret_cast<object>(arguments[1]);
|
object name = reinterpret_cast<object>(arguments[1]);
|
||||||
@ -185,7 +185,7 @@ Avian_java_lang_SystemClassLoader_findClass
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" JNIEXPORT int64_t JNICALL
|
extern "C" JNIEXPORT int64_t JNICALL
|
||||||
Avian_java_lang_SystemClassLoader_resourceExists
|
Avian_avian_SystemClassLoader_resourceExists
|
||||||
(Thread* t, object, uintptr_t* arguments)
|
(Thread* t, object, uintptr_t* arguments)
|
||||||
{
|
{
|
||||||
object name = reinterpret_cast<object>(arguments[1]);
|
object name = reinterpret_cast<object>(arguments[1]);
|
||||||
@ -639,7 +639,7 @@ Avian_java_lang_Runtime_gc
|
|||||||
#ifdef AVIAN_HEAPDUMP
|
#ifdef AVIAN_HEAPDUMP
|
||||||
|
|
||||||
extern "C" JNIEXPORT void JNICALL
|
extern "C" JNIEXPORT void JNICALL
|
||||||
Avian_java_lang_Runtime_dumpHeap
|
Avian_avian_Machine_dumpHeap
|
||||||
(Thread* t, object, uintptr_t* arguments)
|
(Thread* t, object, uintptr_t* arguments)
|
||||||
{
|
{
|
||||||
object outputFile = reinterpret_cast<object>(*arguments);
|
object outputFile = reinterpret_cast<object>(*arguments);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
(type classLoader java/lang/ClassLoader)
|
(type classLoader java/lang/ClassLoader)
|
||||||
|
|
||||||
(type systemClassLoader java/lang/SystemClassLoader)
|
(type systemClassLoader avian/SystemClassLoader)
|
||||||
|
|
||||||
(type accessibleObject java/lang/reflect/AccessibleObject)
|
(type accessibleObject java/lang/reflect/AccessibleObject)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user