Dear Friend
You must follow this link
http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#80959
to get clear concept about .class file internals.
If U have good idea about Instruction set Architecture Or Assemble Programming then You will get special advantage through out this study.
Your New friend
Joydeep Adhikary
Actually we are doing research project in 'Dynamic memory allocation & analysis'.
For that, we have downloaded jvm source code from java.sun.com,but still some errors are coming while producing makefile.
Our main emphasis is on garbage collection in jvm source code.We have to implement various gc algorithms in source code.
But,unless & until we don't know how .class file is processed on JVM,we can't predict output produced by JVM.
Our basic ideas of 'how processing is done by JVM' are not clear.
Can you please help us in this case.
Message was edited by:
sharvari
If you want to see where class files start in the JVM and you have the Mustang source code, you could start with src/share/vm/runtime/classFileParser.cpp.
If you want to see how the various garbage collectors work, you could start from src/share/vm/gc_interface/collectedHeap.hpp, and then find the various implemenations of CollectedHeap. But that will be a slog. It might be better if you asked questions, or read some of our JavaOne talks, or the whitepaper at http://java.sun.com/j2se/reference/whitepapers/memorymanagement_whitepaper.pdf, though that's probably too high level if you want to actually implement a new collector. What properties do you want your new collector to have?
You might want to start a project under https://jdk-research.dev.java.net/ for your work.