Documentation on the Hostpot C++ Heap Management

Christian Thalinger christian.thalinger at oracle.com
Mon May 9 19:57:41 UTC 2016


> On May 9, 2016, at 4:52 AM, Marcelino Rodriguez cancio <marcelino.rodriguez-cancio at irisa.fr> wrote:
> 
> Hello Community: 
> 
> I'm doing some modifications to the Server Compiler (C2) to test some ideas for my Ph.D. 

Does it have to be C2?  Graal is much better suited for academic research:

http://openjdk.java.net/projects/graal/

> 
> Anyway, I'm having some memory related errors which I believe are caused by my inability to properly manage memory. 
> 
> I see there a several types of objects (ResourceObj, StackObj, _ValueObj, etc.) (/hotspot/src/share/vm/memory/allocation.hpp). Also the Arena takes memory from three chunk pools ( http://openjdk.java.net/groups/hotspot/docs/RuntimeOverview.html#C++%20Heap%20Management|outline )... 
> 
> My point is that I have scattered pieces of information that I will have to digest and organize in my head before I'm able to properly use the allocation classes of Hotspot and I was thinking that perhaps someone has done this before and written something about it. 
> 
> Optimally, I'm looking for a comprehensive guide explaining the different classes, the usage rules, good and bad practices...or any resource you think may help me have a mental map of this topic. 
> 
> Thanks a lot for your time! 
> Marcelino 
> 
> 
> 



More information about the hotspot-dev mailing list