diff -r e9771c308d06 -r fefdeafb7ab9 jdk/src/share/classes/sun/misc/VM.java --- a/jdk/src/share/classes/sun/misc/VM.java Thu May 14 10:58:07 2009 -0700 +++ b/jdk/src/share/classes/sun/misc/VM.java Fri Jun 12 14:56:32 2009 -0400 @@ -346,6 +346,11 @@ private native static void getThreadStateValues(int[][] vmThreadStateValues, String[][] vmThreadStateNames); + private static boolean kernelVM; + public static boolean isBootedKernelVM() { + return booted && kernelVM; + } + static { initialize(); }