Object Allocation

Brain Damage brain.damage23 at yahoo.com
Thu Nov 18 17:19:44 UTC 2010


Hello,
 
I am trying to do some modifications in the allocation process of 'external' 
objects i.e. objects allocated using 'new' by any java program.
As written in the whitepaper, JVM employs the fast allocation or 'Bump a 
pointer' technique for allocating external objects.

I am not able to find the entry point of the 'new' keyword i.e. what functions 
are called when it sees the new keyword in a java program.
My initial suspect was  JRT_ENTRY(...) macro in the runtime.cpp file, where they 
have matched 'new_instance_java' with  'new_instance_C'.
I tried to follow the functions called by this macro i.e.   
instanceKlass::cast(klass)->allocate_instance(THREAD);
Although it did take me to some object allocation but I am not sure if this is 
the process used to allocate java objects.
It seems this process is used by the JVM to allocate it's internal runtime 
objects to build the environment.

I don't know a whole lot about jvm, this is just what I could make out by 
looking at the code.

Please help me find the definition new.

Thanks,

Yogesh 


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-gc-dev/attachments/20101118/f35460c5/attachment.htm>


More information about the hotspot-gc-dev mailing list