public class com.oracle.svm.core.Containers
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.core.Containers
super_class: java.lang.Object
{
public static final int UNKNOWN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: -1
private static final int PER_CPU_SHARES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lcom/oracle/svm/core/Containers;
public static int activeProcessorCount();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=11, args_size=0
0: invokestatic com.oracle.svm.core.jdk.Jvm.JVM_ActiveProcessorCount:()I
istore 0
start local 0 1: iload 0
istore 1
start local 1 2: getstatic com.oracle.svm.core.Containers$Options.UseContainerSupport:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 25
ldc Lorg/graalvm/nativeimage/Platform$LINUX;
invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
ifeq 25
3: new com.oracle.svm.core.ContainerInfo
dup
invokespecial com.oracle.svm.core.ContainerInfo.<init>:()V
astore 2
start local 2 4: aload 2
invokevirtual com.oracle.svm.core.ContainerInfo.isContainerized:()Z
ifeq 25
5: aload 2
invokevirtual com.oracle.svm.core.ContainerInfo.getCpuQuota:()J
lstore 3
start local 3 6: aload 2
invokevirtual com.oracle.svm.core.ContainerInfo.getCpuPeriod:()J
lstore 5
start local 5 7: aload 2
invokevirtual com.oracle.svm.core.ContainerInfo.getCpuShares:()J
lstore 7
start local 7 8: iconst_0
istore 9
start local 9 9: lload 3
ldc -1
lcmp
ifle 11
lload 5
lconst_0
lcmp
ifle 11
10: lload 3
l2d
lload 5
l2d
ddiv
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 9
11: StackMap locals: int int com.oracle.svm.core.ContainerInfo long long long int
StackMap stack:
iconst_0
istore 10
start local 10 12: lload 7
ldc -1
lcmp
ifle 14
13: lload 7
l2d
ldc 1024.0
ddiv
invokestatic java.lang.Math.ceil:(D)D
d2i
istore 10
14: StackMap locals: int
StackMap stack:
iload 9
ifeq 20
iload 10
ifeq 20
15: getstatic com.oracle.svm.core.Containers$Options.PreferContainerQuotaForCPUCount:Lcom/oracle/svm/core/option/RuntimeOptionKey;
invokevirtual com.oracle.svm.core.option.RuntimeOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 18
16: iload 9
istore 1
17: goto 25
18: StackMap locals:
StackMap stack:
iload 9
iload 10
invokestatic java.lang.Math.min:(II)I
istore 1
19: goto 25
StackMap locals:
StackMap stack:
20: iload 9
ifeq 23
21: iload 9
istore 1
22: goto 25
StackMap locals:
StackMap stack:
23: iload 10
ifeq 25
24: iload 10
istore 1
end local 10 end local 9 end local 7 end local 5 end local 3 end local 2 25: StackMap locals: int int
StackMap stack:
iload 0
iload 1
invokestatic java.lang.Math.min:(II)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 26 0 cpuCount I
2 26 1 limitCount I
4 25 2 info Lcom/oracle/svm/core/ContainerInfo;
6 25 3 quota J
7 25 5 period J
8 25 7 shares J
9 25 9 quotaCount I
12 25 10 shareCount I
public static long memoryLimitInBytes();
descriptor: ()J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=0
0: getstatic com.oracle.svm.core.Containers$Options.UseContainerSupport:Lcom/oracle/svm/core/option/HostedOptionKey;
invokevirtual com.oracle.svm.core.option.HostedOptionKey.getValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 6
ldc Lorg/graalvm/nativeimage/Platform$LINUX;
invokestatic org.graalvm.nativeimage.Platform.includedIn:(Ljava/lang/Class;)Z
ifeq 6
1: new com.oracle.svm.core.ContainerInfo
dup
invokespecial com.oracle.svm.core.ContainerInfo.<init>:()V
astore 0
start local 0 2: aload 0
invokevirtual com.oracle.svm.core.ContainerInfo.isContainerized:()Z
ifeq 6
3: aload 0
invokevirtual com.oracle.svm.core.ContainerInfo.getMemoryLimit:()J
lstore 1
start local 1 4: lload 1
lconst_0
lcmp
ifle 6
5: lload 1
lreturn
end local 1 end local 0 6: StackMap locals:
StackMap stack:
ldc -1
lreturn
LocalVariableTable:
Start End Slot Name Signature
2 6 0 info Lcom/oracle/svm/core/ContainerInfo;
4 6 1 memoryLimit J
}
SourceFile: "Containers.java"
NestMembers:
com.oracle.svm.core.Containers$Options
InnerClasses:
public Options = com.oracle.svm.core.Containers$Options of com.oracle.svm.core.Containers
public abstract LINUX = org.graalvm.nativeimage.Platform$LINUX of org.graalvm.nativeimage.Platform