public class java.lang.Runtime
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.lang.Runtime
super_class: java.lang.Object
{
private static final java.lang.Runtime currentRuntime;
descriptor: Ljava/lang/Runtime;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static java.lang.Runtime$Version version;
descriptor: Ljava/lang/Runtime$Version;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Runtime
dup
invokespecial java.lang.Runtime.<init>:()V
putstatic java.lang.Runtime.currentRuntime:Ljava/lang/Runtime;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.Runtime getRuntime();
descriptor: ()Ljava/lang/Runtime;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.lang.Runtime.currentRuntime:Ljava/lang/Runtime;
areturn
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Runtime;
public void exit(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
iload 1
invokevirtual java.lang.SecurityManager.checkExit:(I)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
iload 1
invokestatic java.lang.Shutdown.exit:(I)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/Runtime;
0 5 1 status I
1 5 2 security Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
status
public void addShutdownHook(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
new java.lang.RuntimePermission
dup
ldc "shutdownHooks"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 1
invokestatic java.lang.ApplicationShutdownHooks.add:(Ljava/lang/Thread;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/Runtime;
0 5 1 hook Ljava/lang/Thread;
1 5 2 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
hook
public boolean removeShutdownHook(java.lang.Thread);
descriptor: (Ljava/lang/Thread;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
new java.lang.RuntimePermission
dup
ldc "shutdownHooks"
invokespecial java.lang.RuntimePermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 1
invokestatic java.lang.ApplicationShutdownHooks.remove:(Ljava/lang/Thread;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/lang/Runtime;
0 4 1 hook Ljava/lang/Thread;
1 4 2 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
hook
public void halt(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
iload 1
invokevirtual java.lang.SecurityManager.checkExit:(I)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
invokestatic java.lang.Shutdown.beforeHalt:()V
4: iload 1
invokestatic java.lang.Shutdown.halt:(I)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/lang/Runtime;
0 6 1 status I
1 6 2 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
status
public java.lang.Process exec(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Process;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
aconst_null
invokevirtual java.lang.Runtime.exec:(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Process;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Runtime;
0 1 1 command Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
command
public java.lang.Process exec(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Process;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokevirtual java.lang.Runtime.exec:(Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Process;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Runtime;
0 1 1 command Ljava/lang/String;
0 1 2 envp [Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
command
envp
public java.lang.Process exec(java.lang.String, java.lang.String[], java.io.File);
descriptor: (Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Process;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "Empty command"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new java.util.StringTokenizer
dup
aload 1
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;)V
astore 4
start local 4 3: aload 4
invokevirtual java.util.StringTokenizer.countTokens:()I
anewarray java.lang.String
astore 5
start local 5 4: iconst_0
istore 6
start local 6 5: goto 8
6: StackMap locals: java.util.StringTokenizer java.lang.String[] int
StackMap stack:
aload 5
iload 6
aload 4
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
aastore
7: iinc 6 1
StackMap locals:
StackMap stack:
8: aload 4
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 6
end local 6 9: aload 0
aload 5
aload 2
aload 3
invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Process;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/lang/Runtime;
0 10 1 command Ljava/lang/String;
0 10 2 envp [Ljava/lang/String;
0 10 3 dir Ljava/io/File;
3 10 4 st Ljava/util/StringTokenizer;
4 10 5 cmdarray [Ljava/lang/String;
5 9 6 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
command
envp
dir
public java.lang.Process exec(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljava/lang/Process;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
aconst_null
invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Process;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Runtime;
0 1 1 cmdarray [Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cmdarray
public java.lang.Process exec(java.lang.String[], java.lang.String[]);
descriptor: ([Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Process;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokevirtual java.lang.Runtime.exec:([Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Process;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Runtime;
0 1 1 cmdarray [Ljava/lang/String;
0 1 2 envp [Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cmdarray
envp
public java.lang.Process exec(java.lang.String[], java.lang.String[], java.io.File);
descriptor: ([Ljava/lang/String;[Ljava/lang/String;Ljava/io/File;)Ljava/lang/Process;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.ProcessBuilder
dup
aload 1
invokespecial java.lang.ProcessBuilder.<init>:([Ljava/lang/String;)V
1: aload 2
invokevirtual java.lang.ProcessBuilder.environment:([Ljava/lang/String;)Ljava/lang/ProcessBuilder;
2: aload 3
invokevirtual java.lang.ProcessBuilder.directory:(Ljava/io/File;)Ljava/lang/ProcessBuilder;
3: invokevirtual java.lang.ProcessBuilder.start:()Ljava/lang/Process;
4: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/lang/Runtime;
0 5 1 cmdarray [Ljava/lang/String;
0 5 2 envp [Ljava/lang/String;
0 5 3 dir Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cmdarray
envp
dir
public native int availableProcessors();
descriptor: ()I
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native long freeMemory();
descriptor: ()J
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native long totalMemory();
descriptor: ()J
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native long maxMemory();
descriptor: ()J
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public native void gc();
descriptor: ()V
flags: (0x0101) ACC_PUBLIC, ACC_NATIVE
public void runFinalization();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.misc.SharedSecrets.getJavaLangRefAccess:()Ljdk/internal/misc/JavaLangRefAccess;
invokeinterface jdk.internal.misc.JavaLangRefAccess.runFinalization:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Runtime;
public void traceInstructions(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Runtime;
0 1 1 on Z
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "9", forRemoval = true)
MethodParameters:
Name Flags
on
public void traceMethodCalls(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/lang/Runtime;
0 1 1 on Z
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "9", forRemoval = true)
MethodParameters:
Name Flags
on
public void load(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Runtime.load0:(Ljava/lang/Class;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Runtime;
0 2 1 filename Ljava/lang/String;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
filename
void load0(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
aload 2
invokevirtual java.lang.SecurityManager.checkLink:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
new java.io.File
dup
aload 2
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.isAbsolute:()Z
ifne 7
4: new java.lang.UnsatisfiedLinkError
dup
5: new java.lang.StringBuilder
dup
ldc "Expecting an absolute path of the library: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
aload 2
iconst_1
invokestatic java.lang.ClassLoader.loadLibrary:(Ljava/lang/Class;Ljava/lang/String;Z)V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/lang/Runtime;
0 9 1 fromClass Ljava/lang/Class<*>;
0 9 2 filename Ljava/lang/String;
1 9 3 security Ljava/lang/SecurityManager;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)V
MethodParameters:
Name Flags
fromClass
filename
public void loadLibrary(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.internal.reflect.Reflection.getCallerClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Runtime.loadLibrary0:(Ljava/lang/Class;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/lang/Runtime;
0 2 1 libname Ljava/lang/String;
RuntimeVisibleAnnotations:
jdk.internal.reflect.CallerSensitive()
MethodParameters:
Name Flags
libname
void loadLibrary0(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
aload 2
invokevirtual java.lang.SecurityManager.checkLink:(Ljava/lang/String;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 2
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpeq 7
4: new java.lang.UnsatisfiedLinkError
dup
5: new java.lang.StringBuilder
dup
ldc "Directory separator should not appear in library name: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 1
aload 2
iconst_0
invokestatic java.lang.ClassLoader.loadLibrary:(Ljava/lang/Class;Ljava/lang/String;Z)V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljava/lang/Runtime;
0 9 1 fromClass Ljava/lang/Class<*>;
0 9 2 libname Ljava/lang/String;
1 9 3 security Ljava/lang/SecurityManager;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)V
MethodParameters:
Name Flags
fromClass
libname
public static java.lang.Runtime$Version version();
descriptor: ()Ljava/lang/Runtime$Version;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: getstatic java.lang.Runtime.version:Ljava/lang/Runtime$Version;
ifnonnull 5
1: new java.lang.Runtime$Version
dup
invokestatic java.lang.VersionProps.versionNumbers:()Ljava/util/List;
2: invokestatic java.lang.VersionProps.pre:()Ljava/util/Optional;
invokestatic java.lang.VersionProps.build:()Ljava/util/Optional;
3: invokestatic java.lang.VersionProps.optional:()Ljava/util/Optional;
4: invokespecial java.lang.Runtime$Version.<init>:(Ljava/util/List;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V
putstatic java.lang.Runtime.version:Ljava/lang/Runtime$Version;
5: StackMap locals:
StackMap stack:
getstatic java.lang.Runtime.version:Ljava/lang/Runtime$Version;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Runtime.java"
NestMembers:
java.lang.Runtime$Version java.lang.Runtime$VersionPattern
InnerClasses:
public final Version = java.lang.Runtime$Version of java.lang.Runtime
private VersionPattern = java.lang.Runtime$VersionPattern of java.lang.Runtime