Memory allocation during class loading
Possible Duplicate:
static allocation in java - heap, stack and permanent generation
Looking to understand what EXACTLY happens (in terms of memory management) when a class is loaded by JVM. Specifically:
At first the byte array containing the class is loaded into PermGen.
Then the classes byte array is parsed and some parsed information is placed into PermGen, too.
Then the Strings in the class are internalized (and placed into PermGen).
When the class is initialized, all static variable instances are placed on the heap.
When functions are called more often than a given threshold, the code for the JIT-compiled functions is placed into PermGen, too.
That should be all, AFAIK, but I am not a JVM developer.
链接地址: http://www.djcxy.com/p/82852.html下一篇: 在类加载期间的内存分配