Closed GoogleCodeExporter closed 8 years ago
Shutdown hook was responsible to end the dumper when running as a non-daemon
thread,
as Runtime.addShutdownHook javadoc states "The program exits normally, when the
last
non-daemon thread exits", it couldn't while the dumper thread was running.
Solution: the dumper always runs as a daemon thread, when the JVM shuts down
the last
thousand entries from the data queue are written to file, the limit makes sure
that
the virtual machine shuts down relatively fast as required.
The added synchronization doesn't affect the performance of the profiler
adversely.
Original comment by deaka...@gmail.com
on 13 Sep 2009 at 8:36
Original issue reported on code.google.com by
deaka...@gmail.com
on 13 Sep 2009 at 6:18Attachments: