File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
common/src/main/java/org/embeddedt/modernfix/core Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,16 @@ public ModernFixMixinPlugin() {
6565 ModernFixPlatformHooks .injectPlatformSpecificHacks ();
6666
6767 if (ModernFixMixinPlugin .instance .isOptionEnabled ("feature.spam_thread_dump.ThreadDumper" )) {
68+ // run once to trigger classloading
69+ ThreadDumper .obtainThreadDump ();
6870 Thread t = new Thread () {
6971 public void run () {
7072 while (true ) {
71- logger .error ("------ DEBUG THREAD DUMP (occurs every 60 seconds) ------" );
72- logger .error (ThreadDumper .obtainThreadDump ());
73- try { Thread .sleep (60000 ); } catch (InterruptedException e ) {}
73+ try {
74+ Thread .sleep (60000 );
75+ logger .error ("------ DEBUG THREAD DUMP (occurs every 60 seconds) ------" );
76+ logger .error (ThreadDumper .obtainThreadDump ());
77+ } catch (InterruptedException | RuntimeException e ) {}
7478 }
7579 }
7680 };
You can’t perform that action at this time.
0 commit comments