Hook for all newly created objects
Christian Hagedorn
ch-hagedorn at hispeed.ch
Thu Mar 30 00:13:34 UTC 2017
I have added a private field to the oopDesc class inside
share/vm/oops/oop.hpp. Now I wanted to initialize it properly. How can I do
that?
I tried to do it inside the share/vm/runtime/InterpreterRuntime.cpp _new,
newarray, anewarray and multianewarray. But then I miss some objects.
So I looked further and found share/vm/gc_interface/collectedHeap.inline.hpp
and additionally tried to initialize it inside post_allocation_notify. But I
think I still miss some objects.
What can I do to catch all new objects and initialize my field only once?
- Christian
More information about the hotspot-dev
mailing list