RFR: JMC-7798: Make the frame type extensible
Jaroslav Bachorik
jbachorik at openjdk.java.net
Tue May 17 13:54:21 UTC 2022
This change allows the JMC parser users to consume frames with the type set to non-standard values (eg. from async-profiler).
The hard-wired enum approach is replaced with a hybrid solution keeping the standard types in enum-like structure and using a cache for the non-standard types. This allows being fairly flexible when dealing with new frame types while keeping full backward compatibility.
-------------
Commit messages:
- JMC-7798: Make the frame type extensible
Changes: https://git.openjdk.java.net/jmc/pull/401/files
Webrev: https://webrevs.openjdk.java.net/?repo=jmc&pr=401&range=00
Issue: https://bugs.openjdk.java.net/browse/JMC-7798
Stats: 152 lines in 4 files changed: 113 ins; 23 del; 16 mod
Patch: https://git.openjdk.java.net/jmc/pull/401.diff
Fetch: git fetch https://git.openjdk.java.net/jmc pull/401/head:pull/401
PR: https://git.openjdk.java.net/jmc/pull/401
More information about the jmc-dev
mailing list