After this operation, the mailbox will no longer be able to receive messages. Any delivered but as yet unretrieved messages can still be retrieved however.
If there are links from this mailbox to other {@link OtpErlangPid pids}, they will be broken when this method is called and exit signals will be sent.
@param reason an Erlang term describing the reason for the exit.Isolate
. Invocation of this method is equivalent to causing the isolate to invoke {@link java.lang.Runtime#exit(int)}. If this method invocation is, in fact, the cause of the isolate's termination, the status
supplied will be the isolate's termination status. No exception is thrown if this isolate is already terminated. Even if {@link #isTerminated()} returns false priorto invoking exit
, an invocation of exit
may occur after the isolate exits on its own or is terminated by another isolate. In these cases, the actual exit code reported by the isolate may be different from status
.
If this isolate is not yet started, it will be marked as already terminated. A subsequent invocation to {@link #start()} wouldresult in an IsolateStartupException.
If this isolate is suspended, it will be terminated without being resumed. @param status Termination status. By convention, a nonzero status code indicates abnormal termination.
Threads running in the mirrored VM are abruptly terminated. A thread death exception is not thrown and finally blocks are not run. @param exitCode the exit code for the target VM. On some platforms,the exit code might be truncated, for example, to the lower order 8 bits. @throws VMCannotBeModifiedException if the VirtualMachine is read-only - see {@link VirtualMachine#canBeModified()}.
exit()
will remove the association between the current thread and a Context if the prior call to enter()
on this thread newly associated a Context with this thread. Once the current thread no longer has an associated Context, it cannot be used to execute JavaScript until it is again associated with a Context.
@see org.mozilla.javascript.Context#enter()
@see #call(ContextAction)
@see ContextFactory#call(ContextAction)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|