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

Jaroslav Bachorik jbachorik at openjdk.java.net
Tue May 31 09:38:54 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 with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains six additional commits since the last revision:

 - Merge branch 'master' into jb/JMC-7789
 - A few formatting changes
 - Use LRU frame type cache
 - Addressing review comments
 - Fix typo in javadoc
 - JMC-7798: Make the frame type extensible

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

Changes:
  - all: https://git.openjdk.java.net/jmc/pull/401/files
  - new: https://git.openjdk.java.net/jmc/pull/401/files/eb3ffa6b..cc44b79f

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

  Stats: 53 lines in 4 files changed: 35 ins; 1 del; 17 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