#11 remote=on prevents JVM shutdown

open
nobody
None
5
2011-03-28
2011-03-28
Paul Donohue
No

Setting remote=on causes a non-daemon thread to be created, which prevents the JVM from shutting down normally.

The initProfiler() method in Profile.java should be updated to configure _controllerThread as a daemon thread, which will allow the JVM to shut down normally:
if (Controller._remote) {
_controllerThread = new Thread(_controller);
_controllerThread.setDaemon(true);
_controllerThread.start();
}

Discussion