move SystemClassLoader and Runtime.dumpHeap to avian package

This commit is contained in:
Joel Dice
2009-05-25 21:36:29 -06:00
parent 9682d63b84
commit 31d9700c9b
4 changed files with 6 additions and 8 deletions

View File

@ -75,8 +75,6 @@ public class Runtime {
public native long totalMemory();
public static native void dumpHeap(String outputFile);
private static class MyProcess extends Process {
private long pid;
private final int in;

View File

@ -1,31 +0,0 @@
/* Copyright (c) 2008, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software. See license.txt for
details. */
package java.lang;
import java.net.URL;
import java.net.MalformedURLException;
public class SystemClassLoader extends ClassLoader {
protected native Class findClass(String name) throws ClassNotFoundException;
protected native Class findLoadedClass(String name);
private native boolean resourceExists(String name);
protected URL findResource(String name) {
if (resourceExists(name)) {
try {
return new URL("resource:" + name);
} catch (MalformedURLException ignored) { }
}
return null;
}
}