Entry function of GC Collection

Jon Masamitsu jon.masamitsu at oracle.com
Mon Jul 27 18:28:46 UTC 2015

You're perhaps looking for the collect() methods.

For example,

void TenuredGeneration::collect()


void DefNewGeneration::collect()


On 07/25/2015 01:30 PM, Abhinav Jangda wrote:
> Hello all,
> I have been working on a project which requires me to change GC 
> Algorithm in Java Hotspot VM. I have been trying to understand the 
> source code of GC in Hotspot VM. I know a couple of details about GC 
> in Hotspot now. But I am not able to find the start function of GC 
> Collection. I think /VM_GenCollectFull::doit/ and 
> /VM_GenCollectForAllocation::doit() /are the two functions called for 
> GC. But if I add /std::cout/ statements at the start of these 
> functions and start the Dacapo Benchmarks I couldn't see any result 
> produced by /std::cout/ statements. I want to work with SerialGC.
> Here is the command I used to run Hotspot:
> ./java -XX:+UseSerialGC -jar dacapo.jar jython
> OpenJDK version is 8 and I am compiling building openjdk using 
> following command
> make CONF=linux-x86_64-normal-server-release
> It will be great if anyone of you could help me.
> Thank You,
> Abhinav

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20150727/708dff86/attachment-0001.html>

More information about the hotspot-gc-dev mailing list