-
Bug
-
Resolution: Won't Fix
-
P5
-
None
-
1.1.6
-
generic
-
solaris_2.5.1
I ran across this code in method Locked_InitializeClass within file
share/java/runtime/classresolver.c of JDK 1.1.6.
(approx. lines 650-657)
if (noLoader) {
char *name = cbName(cb);
if (strcmp(name, CLS_RESLV_INIT_REF) == 0) {
CCSet(cb, SoftRef);
}
if (strncmp(name, "java/", 5) || strncmp(name, "sun/", 4)) {
CCSet(cb, SysLock);
}
}
IsSysLock will always be set if noLoader is non-zero since it is impossible
for both calls to strncmp to return 0.
I haven't seen where SysLock is used, so this may not matter.
share/java/runtime/classresolver.c of JDK 1.1.6.
(approx. lines 650-657)
if (noLoader) {
char *name = cbName(cb);
if (strcmp(name, CLS_RESLV_INIT_REF) == 0) {
CCSet(cb, SoftRef);
}
if (strncmp(name, "java/", 5) || strncmp(name, "sun/", 4)) {
CCSet(cb, SysLock);
}
}
IsSysLock will always be set if noLoader is non-zero since it is impossible
for both calls to strncmp to return 0.
I haven't seen where SysLock is used, so this may not matter.