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
#include <string.h> | |
int main() { | |
memset(0x42, 42, 37); | |
return 0; | |
} |
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
# print out GC detail log | |
+PrintGCDetails | |
# make the GC logs simpler by disabling a scavenge before the System.gc()s | |
-ScavengeBeforeFullGC | |
# set heap size big enough to hold the array in the demo | |
InitialHeapSize=2g | |
MaxHeapSize=2g |
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
D:\experiment>ruby -v | |
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] | |
D:\experiment>irb | |
irb(main):001:0> system 'echo 123' | |
123 | |
=> true | |
irb(main):002:0> system '@echo 123' | |
=> false | |
irb(main):003:0> quit |
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
$ java -version | |
java version "1.6.0_25" | |
Java(TM) SE Runtime Environment (build 1.6.0_25-b06) | |
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode) | |
$ alias -p | grep clhsdb | |
alias clhsdb='java -classpath .:$JAVA_HOME/lib/sa-jdi.jar sun.jvm.hotspot.CLHSDB' | |
$ clhsdb | |
hsdb> help | |
Available commands: | |
assert true | false |
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
56 1 3 java.lang.String::hashCode (64 bytes) | |
57 2 3 java.lang.String::equals (88 bytes) | |
--- n java.lang.System::arraycopy (static) | |
58 3 3 java.lang.String::charAt (33 bytes) | |
58 5 3 java.lang.Object::<init> (1 bytes) | |
58 4 3 java.lang.Math::min (11 bytes) | |
62 6 3 java.nio.Buffer::position (43 bytes) | |
62 9 3 java.nio.charset.CoderResult::isUnderflow (13 bytes) | |
63 7 3 java.util.jar.Attributes$Name::isValid (32 bytes) | |
63 8 3 java.util.jar.Attributes$Name::isAlpha (30 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
dontinline TestC2BranchPrediction conditionalBranch | |
dontinline TestC2BranchPrediction marker |
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
$ wget http://prdownloads.sourceforge.net/udis86/udis86-1.7.tar.gz?download | |
$ tar zxvf udis86-1.7.tar.gz | |
$ cd udis86-1.7 | |
$ ./configure | |
$ make | |
$ cd udcli |
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
+PrintGCDetails |
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
$ prtstat 4394 | |
Process: java State: S (sleeping) | |
CPU#: 2 TTY: 136:39 Threads: 16 | |
Process, Group and Session IDs | |
Process ID: 4394 Parent ID: 4341 | |
Group ID: 4394 Session ID: 4341 | |
T Group ID: 4394 | |
Page Faults | |
This Process (minor major): 64582 18 |
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
$ java -version | |
java version "1.6.0" | |
Java(TM) SE Runtime Environment (build pxa6460sr8fp1-20100624_01(SR8 FP1)) | |
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux amd64-64 jvmxa6460sr8ifx-20100609_59383 (JIT enabled, AOT enabled) | |
J9VM - 20100609_059383 | |
JIT - r9_20100401_15339ifx2 | |
GC - 20100308_AA) | |
JCL - 20100624_01 | |
$ java -verbose:sizes | |
-Xmca32K RAM class segment increment |