« October 2006 »
SunMonTueWedThuFriSat
1
2
5
8
10
13
14
15
17
19
20
21
23
25
27
29
    
       
Today
XML

Blog::Navigation

GetJava Download Button
Get the Source
Personal Blog

Blog::Referers

Today's Page Hits: 590

Powered by Roller Weblogger.
« Previous day (Oct 29, 2006) | Main | Next day (Oct 31, 2006) »
20061031 Tuesday October 31, 2006

HotSpot source: classloading

In the past, I wrote about Java class loading in these entries:

Now, if you have downloaded JDK source from http://jdk6.dev.java.net and you want to understand classloading in HotSpot JVM, you may want to look at these files: You may want to refer to Dynamic Class Loading in the Java Virtual Machine as well. A good to way to learn classloading is to trace JVM using DTrace on Solaris OS. There is a hotspot::class-loaded probe. For example, on class-loaded probes, you may call jstack action to print stack trace whenever a java class is loaded (or unloaded). If you are reading (and planning to hack!) HotSpot sources, you may want to try these as well:
  1. HotSpot is a C++ program. You can try what is described in "Using DTrace to Profile and Debug A C++ Program"
  2. Insert your own USDT probes in HotSpot source and recompile! [refer: User-land tracing gets better and better]

Note that aforementioned DTrace tricks can be used to trace any subsystem of HotSpot - not neccesarily classloading!



( Oct 31 2006, 05:21:37 PM IST ) Permalink del.icio.us | furl | simpy | slashdot | technorati | digg

Copyright (C) 2005, A. Sundararajan's Weblog