build date | Sun/Oracle JDK Version | OpenJDK Version | HotSpot VM Version |
---|---|---|---|
2006-11-29 | 1.6.0-b105 | 1.6.0-b105 | |
2007-03-14 | 1.6.0_01-b06 | 1.6.0_01-b06 | |
2007-06-22 | 1.6.0_02-b05 | 1.6.0_02-b05 | |
2007-09-24 | 1.6.0_03-b05 | 1.6.0_03-b05 | |
2007-12-14 | 1.6.0_04-b12 | 10.0-b19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Global flags] | |
uintx AdaptivePermSizeWeight = 20 {product} | |
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} | |
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} | |
uintx AdaptiveSizePausePolicy = 0 {product} | |
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} | |
uintx AdaptiveSizePolicyInitializingSteps = 20 {product} | |
uintx AdaptiveSizePolicyOutputInterval = 0 {product} | |
uintx AdaptiveSizePolicyWeight = 10 {product} | |
uintx AdaptiveSizeThroughPutPolicy = 0 {product} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package fx.jvm.hotspot.tools; | |
import java.util.List; | |
import sun.jvm.hotspot.tools.Tool; | |
public class PrintThreadIds extends Tool { | |
public static void main(String[] args) { | |
PrintThreadIds tool = new PrintThreadIds(); | |
tool.start(args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
public class F { | |
static F instance; | |
public static void main(String[] args) throws Exception { | |
ClassLoader l = new URLClassLoader(new URL[] { new File(".").toURI().toURL()}, null); | |
Class<?> clazz = l.loadClass("F"); | |
F.class.getDeclaredField("instance").set(null, clazz.newInstance()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestStackOpsMain { | |
public static void main(String[] args) { | |
// refer to earlier blog post, http://rednaxelafx.javaeye.com/blog/461787 | |
byte[] code = { | |
// CODE SECTION | |
// push ebp | |
0x55, | |
// mov ebp,esp | |
(byte) 0x8B, (byte) 0xEC, | |
// push -0B ; /DevType = STD_OUTPUT_HANDLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getPropertiesFrom(obj) { | |
obj.metaClass.properties.findAll { it.name != 'class' && it.name != 'metaClass' }.inject([:]) { acc, e -> acc[e.name] = e.getProperty(obj); acc } | |
} | |
class Foo { | |
int getBar() { 42; } | |
List getProperties() { [] } | |
} | |
def foo = new Foo(); | |
foo.properties; //=> [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------- | |
Interpreter | |
code size = 65K bytes | |
total space = 167K bytes | |
wasted space = 102K bytes | |
# of codelets = 258 | |
avg codelet size = 258 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------------------------------------------------------- | |
Interpreter | |
code size = 56K bytes | |
total space = 167K bytes | |
wasted space = 111K bytes | |
# of codelets = 258 | |
avg codelet size = 224 bytes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Global flags] | |
uintx AdaptivePermSizeWeight = 20 {product} | |
uintx AdaptiveSizeDecrementScaleFactor = 4 {product} | |
uintx AdaptiveSizeMajorGCDecayTimeScale = 10 {product} | |
uintx AdaptiveSizePausePolicy = 0 {product} | |
uintx AdaptiveSizePolicyCollectionCostMargin = 50 {product} | |
uintx AdaptiveSizePolicyInitializingSteps = 20 {product} | |
uintx AdaptiveSizePolicyOutputInterval = 0 {product} | |
uintx AdaptiveSizePolicyWeight = 10 {product} | |
uintx AdaptiveSizeThroughPutPolicy = 0 {product} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[sajia@sajia ~]$ java | |
Usage: java [-options] class [args...] | |
(to execute a class) | |
or java [-options] -jar jarfile [args...] | |
(to execute a jar file) | |
where options include: | |
-d32 use a 32-bit data model if available | |
-d64 use a 64-bit data model if available |