Skip to content

Commit

Permalink
fix classloader command (#2601)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJi92 authored Aug 11, 2023
1 parent ede9023 commit b58f02f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ public void process(CommandProcess process) {
}

if (all) {
processAllClasses(process, inst);
String hashCode = this.hashCode;
if (StringUtils.isBlank(hashCode) && targetClassLoader != null) {
hashCode = "" + Integer.toHexString(targetClassLoader.hashCode());
}
processAllClasses(process, inst, hashCode);
} else if (classLoaderSpecified && resource != null) {
processResources(process, inst, targetClassLoader);
} else if (classLoaderSpecified && this.loadClass != null) {
Expand Down Expand Up @@ -305,7 +309,7 @@ private void processLoadClass(CommandProcess process, Instrumentation inst, Clas
process.end();
}

private void processAllClasses(CommandProcess process, Instrumentation inst) {
private void processAllClasses(CommandProcess process, Instrumentation inst,String hashCode) {
RowAffect affect = new RowAffect();
getAllClasses(hashCode, inst, affect, process);
if (checkInterrupted(process)) {
Expand Down

0 comments on commit b58f02f

Please sign in to comment.