You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Option(help = "The number of nanoseconds before and between which tearing down an isolate gives a warning message. 0 implies no warning.", deprecated = true, deprecationMessage = "Use TearDownWarningSeconds instead")//
@Option(help = "The number of nanoseconds before tearing down an isolate gives a failure message. 0 implies no message.", deprecated = true, deprecationMessage = "Use TearDownFailureSeconds instead")//
@@ -158,12 +159,25 @@ public static int detachThread(IsolateThread thread) {
158
159
returnCEntryPointActions.leaveDetachThread();
159
160
}
160
161
162
+
staticfinalStringTHREAD_TERMINATION_NOTE_1 = "If this call blocks indefinitely, this means there are still Java-application threads running.";
163
+
staticfinalStringTHREAD_TERMINATION_NOTE_2 = "To prevent indefinite blocking, these threads must be cooperatively shut down within Java before invoking this call.";
164
+
staticfinalStringTHREAD_TERMINATION_NOTE_3 = "To fix this use the option '-R:TearDownWarningSeconds=<secs>' at image build time to detect the threads that are still running.";
165
+
staticfinalStringTHREAD_TERMINATION_NOTE_4 = "This will print the stack traces of all threads that have not been cooperatively terminated.";
166
+
staticfinalStringTHREAD_TERMINATION_NOTE_5 = "Those threads need to be terminated from Java before calling tear_down_isolate.";
0 commit comments