Hi all, Just found a little typo in sun.misc.VM:
diff -r 00e2c88e2234 src/share/classes/sun/misc/VM.java --- a/src/share/classes/sun/misc/VM.java Thu Nov 17 10:46:02 2011 -0800 +++ b/src/share/classes/sun/misc/VM.java Tue Jan 10 13:42:52 2012 +0800 @@ -167,7 +167,7 @@ // // The initial value of this field is arbitrary; during JRE initialization // it will be reset to the value specified on the command line, if any, - // otherwise to Runtime.getRuntime.maxDirectMemory(). + // otherwise to Runtime.getRuntime().maxMemory(). // private static long directMemory = 64 * 1024 * 1024; I was looking for the default max direct memory size when I found this comment. It would have been nice if this typo was fixed in 6977738. [1] Could anybody include this fix in some future commits? Regards, Kris Mok [1]: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/b444f86c4abe