When Thread 1 assign a value to defineClassMethod and leave the critical section, then Thread 2 may assign a new value to defineClassMethod.
Maybe should check defineClassMethod==null inside synchronized(accessClassLoaders) code block too to avoid this issue and complete the DCL.
When Thread 1 assign a value to defineClassMethod and leave the critical section, then Thread 2 may assign a new value to defineClassMethod. Maybe should check defineClassMethod==null inside synchronized(accessClassLoaders) code block too to avoid this issue and complete the DCL.