Integrated: JMC-7798: Make the frame type extensible

Jaroslav Bachorik jbachorik at openjdk.java.net
Tue May 31 15:54:50 UTC 2022


On Tue, 17 May 2022 13:47:51 GMT, Jaroslav Bachorik <jbachorik at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 303031fa
Author:    Jaroslav Bachorik <jbachorik at openjdk.org>
Committer: Christoph Langer <clanger at openjdk.org>
URL:       https://git.openjdk.java.net/jmc/commit/303031fa3d0238574e2f30a0d28b1c76b065f609
Stats:     202 lines in 4 files changed: 159 ins; 9 del; 34 mod

7798: Make the frame type extensible

Reviewed-by: clanger

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

PR: https://git.openjdk.java.net/jmc/pull/401


More information about the jmc-dev mailing list