mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
improve classloader hash string.
This commit is contained in:
@@ -49,7 +49,7 @@ public class ClassLoaderUtils {
|
||||
if (hashCode <= 0) {
|
||||
hashCode = System.identityHashCode(classLoader);
|
||||
if (hashCode < 0) {
|
||||
hashCode = -hashCode;
|
||||
hashCode = hashCode & Integer.MAX_VALUE;
|
||||
}
|
||||
}
|
||||
return Integer.toHexString(hashCode);
|
||||
|
||||
Reference in New Issue
Block a user