Fujitsu J Adapter Class Generator Portable Generator User Manual


 
Chapter 5. Adapter Class Reference 49
Environment variable name Function
COBJNI_MAX_NSTACK Specifies the maximum size (bytes) of the stack used for
the native code. The default is 128 kilobytes.
COBJNI_JAVA_STACK Specifies the maximum size (bytes) of the stack used for
the Java code. The default is 400 kilobytes.
COBJNI_MIN_HEAP Specifies the startup size of the memory allocation pool
in bytes. The default is 1 megabyte.
COBJNI_MAX_HEAP Specifies the maximum size of the memory allocation
pool in bytes. The default is 16 megabytes.
COBJNI_CLASSPATH Specifies the execution-time class path.
Environment variable CLASSPATH specifies the
generation-time class path and has no effect at
execution time.
Caution
An error occurs when this method is invoked two or more times in one process.
JVM-TERMINATE Method (factory method)
Explanation
The current thread is isolated from the Java VM. In the multithread applications, the
current thread must be isolated from Java VM before the thread is terminated.
Also, when it is called by the last thread in a process, Java VM is terminated. It is
used when the adapter class is used no more.
Syntax
INVOKE FJ-JAVA-CONTROL "JVM-TERMINATE"
Caution
An error occurs when this method is invoked two or more times in one process.
JVM-ATTACH Method (factory method)
Explanation
The current thread is isolated from the Java VM. In the multithread applications, the
current thread must be isolated from Java VM before the thread is terminated.
Syntax
INVOKE FJ-JAVA-CONTROL "JVM-ATTACH"
JVM-DETACH method (factory method)
Explanation
This is equivalent to the JVM-TERMINATE method.
Syntax
INVOKE FJ-JAVA-CONTROL "JVM-DETACH"