[Rev 03] RFR: 6656: Allow capturing field values with path syntax

Kangcheng Xu kxu at openjdk.java.net
Thu Dec 19 19:48:56 UTC 2019


On Thu, 19 Dec 2019 11:49:34 GMT, Marcus Hirt <hirt at openjdk.org> wrote:

>> The pull request has been updated with 1 additional commit.
> 
> core/org.openjdk.jmc.agent/src/main/java/org/openjdk/jmc/agent/Transformer.java line 73:
> 
>> 72: 			// Don't reuse this class loader instance. We want the loader and its class to unload after we're done.
>> 73: 			classBeingRedefined = new InspectionClassLoader(loader).loadClass(TypeUtils.getCanonicalName(className));
>> 74: 		} catch (ClassNotFoundException e) {
> 
> This means we'll load the class even if we don't need it. Any chance we could do this lazy when and if we need it?

I agree. The code has been updated.

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

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


More information about the jmc-dev mailing list