Hook for all newly created objects (original) (raw)
Christian Hagedorn ch-hagedorn at hispeed.ch
Thu Mar 30 00:13:34 UTC 2017
- Previous message: RFR(M) : 8177507 : line number sensitive tests for jdi should be unified
- Next message: Hook for all newly created objects
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: RFR(M) : 8177507 : line number sensitive tests for jdi should be unified
- Next message: Hook for all newly created objects
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]