RFR: JMC-7798: Make the frame type extensible [v4]

Jaroslav Bachorik jbachorik at openjdk.java.net
Mon May 30 19:09:28 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.

Jaroslav Bachorik has updated the pull request incrementally with one additional commit since the last revision:

  Use LRU frame type cache

-------------

Changes:
  - all: https://git.openjdk.java.net/jmc/pull/401/files
  - new: https://git.openjdk.java.net/jmc/pull/401/files/1b2d3556..6c8b7596

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jmc&pr=401&range=03
 - incr: https://webrevs.openjdk.java.net/?repo=jmc&pr=401&range=02-03

  Stats: 13 lines in 1 file changed: 12 ins; 0 del; 1 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