Saturday, April 16, 2011

OpenJDK Hotspot, source code line count

Here are some notes, source code analysis of hotspot:
# perl cloc-1.53.pl  src
    1786 text files.
    1716 unique files.
     121 files ignored.
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C++                            673          64909          97522         340057
C/C++ Header                   796          25928          49603         101144
XML                             61            474            179          15360
Java                            78           1908           2397           8663
C                               11           1194           2327           7236
XSLT                             7            560            166           4406
Assembly                         6             89             36           2245
D                                4             83            127            869
SKILL                            3             71              0            495
make                             2             34             58            146
Javascript                       1              6             27             38
-------------------------------------------------------------------------------
SUM:                          1642          95256         152442         480659
-------------------------------------------------------------------------------
   5282 ./share/vm/gc_implementation/g1/g1CollectedHeap.cpp
   6041 ./os/solaris/vm/os_solaris.cpp
   6658 ./share/vm/c1/c1_LinearScan.cpp
   8982 ./cpu/x86/vm/assembler_x86.cpp
   9232 ./share/vm/gc_implementation/concurrentMarkSweep/concurrentMarkSweepGeneration.cpp


http://openjdk.java.net/groups/hotspot/docs/FOSDEM-2007-HotSpot.pdf
http://blogs.sun.com/jonthecollector/
http://blogs.sun.com/tony/

No comments: