public class SubInterpreterOptions
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static SubInterpreterOptions |
isolated()
Create a new SubInterpreterOptions with the default isolated settings.
|
static SubInterpreterOptions |
legacy()
Create a new SubInterpreterOptions with the default legacy settings.
|
SubInterpreterOptions |
setAllowDaemonThreads(boolean allowDaemonThreads)
If this is false then the sub-interpreter's threading module won't be
able to create daemon threads.
|
SubInterpreterOptions |
setAllowExec(boolean allowExec)
If this is false then the runtime will not support replacing the current
process via exec (e.g.
|
SubInterpreterOptions |
setAllowFork(boolean allowFork)
If this is false then the runtime will not support forking the process in
any thread where the sub-interpreter is currently active.
|
SubInterpreterOptions |
setAllowThreads(boolean allowThreads)
If this is false then the sub-interpreter's threading module won't be
able to create threads.
|
SubInterpreterOptions |
setCheckMultiInterpeExtensions(boolean checkMultiInterpeExtensions)
Deprecated.
Deprecated in Jep 4.2.1. This method is misspelled and has a
typo in the name. Please use the correctly named
setCheckMultiInterpExtensions. The misspelled method
will be removed in Jep 4.3. |
SubInterpreterOptions |
setCheckMultiInterpExtensions(boolean checkMultiInterpExtensions)
If this is false then all extension modules may be imported, including
legacy (single-phase init) modules, in any thread where the
sub-interpreter is currently active.
|
SubInterpreterOptions |
setOwnGIL(boolean ownGIL)
This determines the operation of the GIL for the sub-interpreter.
|
SubInterpreterOptions |
setUseMainObmalloc(boolean useMainObmalloc)
If this is false then the sub-interpreter will use its own "object"
allocator state.
|
java.lang.String |
toString() |
public SubInterpreterOptions setUseMainObmalloc(boolean useMainObmalloc)
useMainObmalloc - whether the sub-interpreter will share the main interpreter's
allocator state.public SubInterpreterOptions setAllowFork(boolean allowFork)
allowFork - whether the sub-interpreter will allow fork.public SubInterpreterOptions setAllowExec(boolean allowExec)
allowExec - whether the sub-interpreter will allow exec.public SubInterpreterOptions setAllowThreads(boolean allowThreads)
allowThreads - whether the sub-interpreter will allow threads.public SubInterpreterOptions setAllowDaemonThreads(boolean allowDaemonThreads)
allowDaemonThreads - whether the sub-interpreter will allow daemon threads.@Deprecated public SubInterpreterOptions setCheckMultiInterpeExtensions(boolean checkMultiInterpeExtensions)
setCheckMultiInterpExtensions. The misspelled method
will be removed in Jep 4.3.checkMultiInterpeExtensions - whether the sub-interpreter will restrict import of legacy
modulespublic SubInterpreterOptions setCheckMultiInterpExtensions(boolean checkMultiInterpExtensions)
checkMultiInterpExtensions - whether the sub-interpreter will restrict import of legacy
modulespublic SubInterpreterOptions setOwnGIL(boolean ownGIL)
ownGIL - whether the sub-interpreter will use its own GIL.public static SubInterpreterOptions legacy()
public static SubInterpreterOptions isolated()
public java.lang.String toString()
toString in class java.lang.Object