RFR: 6712: Make agent retransform classes when loaded dynamically
Marcus Hirt
hirt at openjdk.java.net
Sun Mar 1 22:50:39 UTC 2020
On Fri, 28 Feb 2020 17:12:23 GMT, Jessye Coleman-Shapiro <jescolem at openjdk.org> wrote:
> This patch makes the Agent retransform all classes stored in the registry after it is loaded, when it is loaded dynamically. Previously the transformations specified in the xml file path argument were not always being performed in this dynamic case.
>
> Let me know what you think.
agent/src/main/java/org/openjdk/jmc/agent/impl/DefaultTransformRegistry.java line 460:
> 459: public List<String> getClassNames() {
> 460: return new ArrayList<>(transformData.keySet());
> 461: }
This data comes from a set. Any reason for it to be made into a list (implies order, where there is none)? Wrap in Collections#unmodifiableSet?
-------------
PR: https://git.openjdk.java.net/jmc/pull/60
More information about the jmc-dev
mailing list