##Rerequirement
- Ubuntu 14.04+
- git
##Start
- download openjdk 8
git clone -b jdk8 https://github.com/dmlloyd/openjdk
- build openjdk 8
bash ./startup.sh
- create java class HelloHotSpot
public class HelloHotSpot {
public static void main(String []args) {
System.out.println("Hello HotSpot");
}
}
- start hotspot
../../../jdk/bin/javac HelloHotSpot.java
cd build/linux-x86_64-normal-server-fastdebug/hotspot/linux_amd64_compiler2/fastdebug/
ALT_JAVA_HOME=../../../jdk
./hotspot -gdb HelloHotSpot
##HotSpot code base
http://cloc.sourceforge.net v 1.60 T=32.92 s (128.6 files/s, 39208.1 lines/s)
4669 text files. 4519 unique files. 408 files ignored.
C++ 812 80690 120633 431429 Java 2078 33010 76297 257950 C/C++ Header 1051 35023 61731 137310 XML 54 643 242 16066 C 29 1736 1919 8961 XSLT 11 653 239 4712 Assembly 8 105 32 3154 Bourne Shell 90 612 2300 2451 make 20 560 1094 2358 HTML 8 237 3 2063 D 8 164 248 1685 Javascript 3 103 192 698 Objective C 1 112 121 611 SKILL 3 75 0 531 DOS Batch 41 175 1002 430 ASP.Net 1 24 0 161 Ant 13 27 88 107 DTD 1 6 18 62 Teamcenter def 1 0 0 7
##JDK code base
22345 text files. 21831 unique files. 2173 files ignored.