JOL is hanging when running from module path

Aleksey Shipilev shade at redhat.com
Thu Jan 24 20:14:27 UTC 2019


On 1/23/18 12:34 PM, Aleksey Shipilev wrote:
>> If the empty classpath is the problem, this should be the fix?
>>
>> $ hg diff
>> diff -r 03064c057dc9 jol-core/src/main/java/org/openjdk/jol/vm/sa/ServiceabilityAgentSupport.java
>> --- a/jol-core/src/main/java/org/openjdk/jol/vm/sa/ServiceabilityAgentSupport.java	Fri Sep 22
>> 17:29:25 2017 +0200
>> +++ b/jol-core/src/main/java/org/openjdk/jol/vm/sa/ServiceabilityAgentSupport.java	Mon Nov 13
>> 11:25:52 2017 +0100
>> @@ -290,8 +290,10 @@
>>                  throw new IllegalStateException("Unhandled style: " + style);
>>          }
>>
>> -        args.add("-cp");
>> -        args.add(classPath);
>> +        if (!classPath.isEmpty()) {
>> +            args.add("-cp");
>> +            args.add(classPath);
>> +        }
>>          return args;
>>      }
>>
>> Can you try it?

This is pushed as:
  https://bugs.openjdk.java.net/browse/CODETOOLS-7902371

-Aleksey



More information about the jol-dev mailing list