File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
agent/src/main/java/scalive Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,15 +156,15 @@ private static ClassLoader sbtFindMainClassLoader() throws Exception {
156156 // Thread Context Class Loaders:
157157 //
158158 // #Id ClassLoader Info
159- // 1 URLClassLoader main #1 [main] <--- Take out this one
159+ // 1 URLClassLoader main #1 [main] <--- Take out this one (Info is not always "main #1 [main]")
160160 // 2 ClasspathFilter xitrum-akka.actor.default-dispatcher-2 #31 [run-main-group-0]
161161
162162 Collection <ClassLoaderInfo > clis = DISCOVERY .listClassLoaders ();
163163 for (ClassLoaderInfo cli : clis ) {
164164 ClassLoader cl = cli .getClassLoader ();
165165 String name = cli .getClassLoaderName ();
166166
167- // Can't use info because it can be "process reaper #8 [system]" etc.
167+ // Can't use info because it's not fixed; can be "process reaper #8 [system]" etc.
168168 boolean mainClassLoader = cl instanceof URLClassLoader && "URLClassLoader" .equals (name );
169169
170170 if (mainClassLoader ) return cl ;
You can’t perform that action at this time.
0 commit comments