RFR: 7439: Introduced IConstantPoolExtension for Constant Pools [v3]
Michael Südkamp
duke at openjdk.java.net
Sat Oct 30 20:39:50 UTC 2021
On Fri, 29 Oct 2021 20:50:44 GMT, Jean-Philippe Bempel <jpbempel at openjdk.org> wrote:
>> Add extension methods when constants are read, referenced, resolved
>> and constant pools fully resolved to be able for example:
>>
>> * track constant pool usage inside events
>> * replace or translate symbols, method names, etc... like
>> de-obfuscations of stack traces
>
> Jean-Philippe Bempel has updated the pull request incrementally with one additional commit since the last revision:
>
> add default for existing IParserExtension methods
Rather than starting with the unit test, I added the MyConstantPoolExtension from to test to the FlightRecordingLoader.loadStream() (only for testing of course). I added breakpoints to all methods of the MyConstantPoolExtension class and loaded a recording (recorded from our company developed app). All methods were executed a lot times as expected. I expected to see my own class or packages names sooner or later, but I only saw JDK internal names. So I probably didn't got the idea. Can you help?
I pushed the change to my fork FYI.
https://github.com/docwarems/jmc/commit/c9669a70464b0c8ddc28990bda1eeb2276a0fc3d
-------------
PR: https://git.openjdk.java.net/jmc/pull/333
More information about the jmc-dev
mailing list