public class com.oracle.svm.hosted.image.sources.SourceCache
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.hosted.image.sources.SourceCache
super_class: java.lang.Object
{
protected static final java.util.List<java.nio.file.Path> classPathEntries;
descriptor: Ljava/util/List;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/nio/file/Path;>;
protected static final java.util.List<java.lang.String> sourcePathEntries;
descriptor: Ljava/util/List;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
protected java.util.List<com.oracle.svm.hosted.image.sources.SourceRoot> srcRoots;
descriptor: Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/List<Lcom/oracle/svm/hosted/image/sources/SourceRoot;>;
private static final java.lang.String[] specialRootModules;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.util.HashMap<java.lang.String, java.util.List<java.nio.file.Path>> specialSrcRoots;
descriptor: Ljava/util/HashMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/HashMap<Ljava/lang/String;Ljava/util/List<Ljava/nio/file/Path;>;>;
private final java.nio.file.Path basePath;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lcom/oracle/svm/hosted/image/sources/SourceCache;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.svm.hosted.image.sources.SourceCache.$assertionsDisabled:Z
3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic com.oracle.svm.hosted.image.sources.SourceCache.classPathEntries:Ljava/util/List;
4: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic com.oracle.svm.hosted.image.sources.SourceCache.sourcePathEntries:Ljava/util/List;
5: iconst_2
anewarray java.lang.String
dup
iconst_0
6: ldc "jdk.internal.vm.ci"
aastore
dup
iconst_1
7: ldc "jdk.internal.vm.compiler"
aastore
8: putstatic com.oracle.svm.hosted.image.sources.SourceCache.specialRootModules:[Ljava/lang/String;
9: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
invokestatic com.oracle.svm.core.SubstrateOptions.getDebugInfoSourceCacheRoot:()Ljava/nio/file/Path;
putfield com.oracle.svm.hosted.image.sources.SourceCache.basePath:Ljava/nio/file/Path;
2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.oracle.svm.hosted.image.sources.SourceCache.specialSrcRoots:Ljava/util/HashMap;
4: aload 0
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.addJDKSources:()V
5: aload 0
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.addGraalSources:()V
6: aload 0
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.addApplicationSources:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
private void addJDKSources();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=13, args_size=1
start local 0 0: ldc "java.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: getstatic com.oracle.svm.hosted.image.sources.SourceCache.$assertionsDisabled:Z
ifne 2
aload 1
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: java.lang.String
StackMap stack:
ldc ""
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 3: getstatic org.graalvm.compiler.serviceprovider.JavaVersionUtil.JAVA_SPEC:I
bipush 11
if_icmpge 9
4: aload 2
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 4
start local 4 5: aload 4
ifnonnull 7
6: new java.lang.StringBuilder
dup
ldc "Cannot resolve parent directory of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.oracle.svm.core.util.VMError.shouldNotReachHere:(Ljava/lang/String;)Ljava/lang/RuntimeException;
pop
7: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.lang.String java.nio.file.Path top java.nio.file.Path
StackMap stack:
aload 4
ldc "src.zip"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
end local 4 start local 3 8: goto 10
end local 3 9: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.lang.String java.nio.file.Path
StackMap stack:
aload 2
ldc "lib"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
ldc "src.zip"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 10: StackMap locals: java.nio.file.Path
StackMap stack:
aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifne 12
11: return
12: StackMap locals:
StackMap stack:
aload 3
aconst_null
invokestatic java.nio.file.FileSystems.newFileSystem:(Ljava/nio/file/Path;Ljava/lang/ClassLoader;)Ljava/nio/file/FileSystem;
astore 4
start local 4 13: aload 4
invokevirtual java.nio.file.FileSystem.getRootDirectories:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 25
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.lang.String java.nio.file.Path java.nio.file.Path java.nio.file.FileSystem top java.util.Iterator
StackMap stack:
14: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 5
start local 5 15: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
new com.oracle.svm.hosted.image.sources.SourceRoot
dup
aload 5
iconst_1
invokespecial com.oracle.svm.hosted.image.sources.SourceRoot.<init>:(Ljava/nio/file/Path;Z)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: getstatic org.graalvm.compiler.serviceprovider.JavaVersionUtil.JAVA_SPEC:I
bipush 11
if_icmplt 25
17: getstatic com.oracle.svm.hosted.image.sources.SourceCache.specialRootModules:[Ljava/lang/String;
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 24
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.lang.String java.nio.file.Path java.nio.file.Path java.nio.file.FileSystem java.nio.file.Path java.util.Iterator top int int java.lang.String[]
StackMap stack:
18: aload 10
iload 8
aaload
astore 7
start local 7 19: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 11
start local 11 20: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.specialSrcRoots:Ljava/util/HashMap;
aload 7
aload 11
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
21: aload 5
aload 7
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 12
start local 12 22: aload 12
iconst_2
invokedynamic test()Ljava/util/function/BiPredicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Z
com/oracle/svm/hosted/image/sources/SourceCache.lambda$0(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z (6)
(Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
iconst_0
anewarray java.nio.file.FileVisitOption
invokestatic java.nio.file.Files.find:(Ljava/nio/file/Path;ILjava/util/function/BiPredicate;[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
aload 11
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/util/ArrayList;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/util/ArrayList.add(Ljava/lang/Object;)Z (5)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
end local 12 end local 11 end local 7 23: iinc 8 1
StackMap locals:
StackMap stack:
24: iload 8
iload 9
if_icmplt 18
end local 5 25: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.lang.String java.nio.file.Path java.nio.file.Path java.nio.file.FileSystem top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
end local 4 26: goto 28
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.lang.String java.nio.file.Path java.nio.file.Path
StackMap stack: java.lang.Exception
27: pop
28: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
1 29 1 javaHome Ljava/lang/String;
3 29 2 javaHomePath Ljava/nio/file/Path;
8 9 3 srcZipPath Ljava/nio/file/Path;
10 29 3 srcZipPath Ljava/nio/file/Path;
5 8 4 srcZipDir Ljava/nio/file/Path;
13 26 4 srcFileSystem Ljava/nio/file/FileSystem;
15 25 5 root Ljava/nio/file/Path;
19 23 7 specialRootModule Ljava/lang/String;
20 23 11 rootsList Ljava/util/ArrayList<Ljava/nio/file/Path;>;
22 23 12 specialModuleRoot Ljava/nio/file/Path;
Exception table:
from to target type
12 26 27 Class java.io.IOException
12 26 27 Class java.nio.file.FileSystemNotFoundException
private void addGraalSources();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.svm.hosted.image.sources.SourceCache.classPathEntries:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
1: aload 0
invokedynamic accept(Lcom/oracle/svm/hosted/image/sources/SourceCache;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/oracle/svm/hosted/image/sources/SourceCache.lambda$2(Ljava/nio/file/Path;)V (7)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
2: getstatic com.oracle.svm.hosted.image.sources.SourceCache.sourcePathEntries:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
3: aload 0
invokedynamic accept(Lcom/oracle/svm/hosted/image/sources/SourceCache;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/oracle/svm/hosted/image/sources/SourceCache.lambda$3(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
private void addGraalSourceRoot(java.nio.file.Path, boolean);
descriptor: (Ljava/nio/file/Path;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 2
aload 3
ldc ".src.zip"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 15
2: StackMap locals: java.lang.String
StackMap stack:
iload 2
ifeq 5
aload 3
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 5
3: aload 3
invokevirtual java.lang.String.length:()I
istore 4
start local 4 4: new java.lang.StringBuilder
dup
aload 3
iconst_0
iload 4
iconst_3
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "src.zip"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
end local 4 5: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 6: aload 4
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 24
7: aload 4
aconst_null
invokestatic java.nio.file.FileSystems.newFileSystem:(Ljava/nio/file/Path;Ljava/lang/ClassLoader;)Ljava/nio/file/FileSystem;
astore 5
start local 5 8: aload 5
invokevirtual java.nio.file.FileSystem.getRootDirectories:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 7
goto 11
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path int java.lang.String java.nio.file.Path java.nio.file.FileSystem top java.util.Iterator
StackMap stack:
9: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 6
start local 6 10: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
new com.oracle.svm.hosted.image.sources.SourceRoot
dup
aload 6
invokespecial com.oracle.svm.hosted.image.sources.SourceRoot.<init>:(Ljava/nio/file/Path;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 11: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 5 12: goto 24
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path int java.lang.String java.nio.file.Path
StackMap stack: java.lang.Exception
13: pop
end local 4 14: goto 24
15: StackMap locals:
StackMap stack:
iload 2
ifeq 21
16: aload 1
ldc "src"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
start local 4 17: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
new com.oracle.svm.hosted.image.sources.SourceRoot
dup
aload 4
invokespecial com.oracle.svm.hosted.image.sources.SourceRoot.<init>:(Ljava/nio/file/Path;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
18: aload 1
ldc "src_gen"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 4
19: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
new com.oracle.svm.hosted.image.sources.SourceRoot
dup
aload 4
invokespecial com.oracle.svm.hosted.image.sources.SourceRoot.<init>:(Ljava/nio/file/Path;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 20: goto 24
21: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
new com.oracle.svm.hosted.image.sources.SourceRoot
dup
aload 1
invokespecial com.oracle.svm.hosted.image.sources.SourceRoot.<init>:(Ljava/nio/file/Path;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 22: goto 24
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path int
StackMap stack: java.lang.NullPointerException
23: pop
24: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 25 1 sourcePath Ljava/nio/file/Path;
0 25 2 fromClassPath Z
1 22 3 fileNameString Ljava/lang/String;
4 5 4 length I
6 14 4 srcPath Ljava/nio/file/Path;
8 12 5 fileSystem Ljava/nio/file/FileSystem;
10 11 6 root Ljava/nio/file/Path;
17 20 4 srcPath Ljava/nio/file/Path;
Exception table:
from to target type
7 12 13 Class java.io.IOException
7 12 13 Class java.nio.file.FileSystemNotFoundException
0 22 23 Class java.lang.NullPointerException
MethodParameters:
Name Flags
sourcePath
fromClassPath
private void addApplicationSources();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.svm.hosted.image.sources.SourceCache.classPathEntries:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
1: aload 0
invokedynamic accept(Lcom/oracle/svm/hosted/image/sources/SourceCache;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/oracle/svm/hosted/image/sources/SourceCache.lambda$4(Ljava/nio/file/Path;)V (7)
(Ljava/nio/file/Path;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
2: getstatic com.oracle.svm.hosted.image.sources.SourceCache.sourcePathEntries:Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
3: aload 0
invokedynamic accept(Lcom/oracle/svm/hosted/image/sources/SourceCache;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/oracle/svm/hosted/image/sources/SourceCache.lambda$5(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
protected void addApplicationSourceRoot(java.nio.file.Path, boolean);
descriptor: (Ljava/nio/file/Path;Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
astore 3
start local 3 1: aload 3
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 4
start local 4 2: aload 4
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 3
aload 4
ldc ".zip"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 16
3: StackMap locals: java.nio.file.Path java.lang.String
StackMap stack:
iload 2
ifeq 6
aload 4
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
4: aload 4
invokevirtual java.lang.String.length:()I
istore 5
start local 5 5: new java.lang.StringBuilder
dup
aload 4
iconst_0
iload 5
iconst_4
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "-sources.jar"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
end local 5 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
aload 4
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
7: aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 36
8: aload 3
aconst_null
invokestatic java.nio.file.FileSystems.newFileSystem:(Ljava/nio/file/Path;Ljava/lang/ClassLoader;)Ljava/nio/file/FileSystem;
astore 5
start local 5 9: aload 5
invokevirtual java.nio.file.FileSystem.getRootDirectories:()Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 7
goto 12
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path int java.nio.file.Path java.lang.String java.nio.file.FileSystem top java.util.Iterator
StackMap stack:
10: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 6
start local 6 11: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
new com.oracle.svm.hosted.image.sources.SourceRoot
dup
aload 6
invokespecial com.oracle.svm.hosted.image.sources.SourceRoot.<init>:(Ljava/nio/file/Path;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 12: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
end local 5 13: goto 36
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path int java.nio.file.Path java.lang.String
StackMap stack: java.lang.Exception
14: pop
15: goto 36
16: StackMap locals:
StackMap stack:
iload 2
ifeq 22
17: aload 3
ldc "classes"
invokeinterface java.nio.file.Path.endsWith:(Ljava/lang/String;)Z
ifeq 22
18: aload 3
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 5
start local 5 19: aload 5
ldc "target"
invokeinterface java.nio.file.Path.endsWith:(Ljava/lang/String;)Z
ifeq 21
20: aload 5
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
astore 5
21: StackMap locals: java.nio.file.Path
StackMap stack:
aload 5
ldc "src"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
end local 5 22: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 5
start local 5 23: aload 5
invokevirtual java.io.File.exists:()Z
ifeq 36
aload 5
invokevirtual java.io.File.isDirectory:()Z
ifeq 36
24: aload 3
ldc "main"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
ldc "java"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 6
start local 6 25: aload 6
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 5
26: aload 5
invokevirtual java.io.File.exists:()Z
ifeq 29
aload 5
invokevirtual java.io.File.isDirectory:()Z
ifeq 29
27: aload 6
astore 3
28: goto 33
29: StackMap locals: java.io.File java.nio.file.Path
StackMap stack:
aload 3
ldc "java"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 6
30: aload 6
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 5
31: aload 5
invokevirtual java.io.File.exists:()Z
ifeq 33
aload 5
invokevirtual java.io.File.isDirectory:()Z
ifeq 33
32: aload 6
astore 3
33: StackMap locals:
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
new com.oracle.svm.hosted.image.sources.SourceRoot
dup
aload 3
invokespecial com.oracle.svm.hosted.image.sources.SourceRoot.<init>:(Ljava/nio/file/Path;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 end local 5 end local 4 end local 3 34: goto 36
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path int
StackMap stack: java.lang.NullPointerException
35: pop
36: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 37 1 sourceRoot Ljava/nio/file/Path;
0 37 2 fromClassPath Z
1 34 3 sourcePath Ljava/nio/file/Path;
2 34 4 fileNameString Ljava/lang/String;
5 6 5 length I
9 13 5 fileSystem Ljava/nio/file/FileSystem;
11 12 6 root Ljava/nio/file/Path;
19 22 5 parent Ljava/nio/file/Path;
23 34 5 file Ljava/io/File;
25 34 6 subPath Ljava/nio/file/Path;
Exception table:
from to target type
8 13 14 Class java.io.IOException
8 13 14 Class java.nio.file.FileSystemNotFoundException
0 34 35 Class java.lang.NullPointerException
MethodParameters:
Name Flags
sourceRoot
fromClassPath
public java.nio.file.Path resolve(java.nio.file.Path, java.lang.Class<?>);
descriptor: (Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.findCandidate:(Ljava/nio/file/Path;)Ljava/io/File;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aload 0
aload 1
aload 2
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.tryCacheFile:(Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
areturn
3: StackMap locals: java.io.File
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.checkCacheFile:(Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 4 1 filePath Ljava/nio/file/Path;
0 4 2 clazz Ljava/lang/Class<*>;
1 4 3 cachedFile Ljava/io/File;
Signature: (Ljava/nio/file/Path;Ljava/lang/Class<*>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
filePath
clazz
public java.io.File findCandidate(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.cachedFile:(Ljava/nio/file/Path;)Ljava/io/File;
astore 2
start local 2 1: aload 2
invokevirtual java.io.File.exists:()Z
ifeq 3
2: aload 2
areturn
3: StackMap locals: java.io.File
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 4 1 filePath Ljava/nio/file/Path;
1 4 2 file Ljava/io/File;
MethodParameters:
Name Flags
filePath
protected java.nio.file.Path tryCacheFile(java.nio.file.Path, java.lang.Class<?>);
descriptor: (Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.cachedPath:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: getstatic org.graalvm.compiler.serviceprovider.JavaVersionUtil.JAVA_SPEC:I
bipush 11
if_icmplt 4
aload 2
ifnull 4
3: aload 2
invokestatic com.oracle.svm.util.ModuleSupport.getModuleName:(Ljava/lang/Class;)Ljava/lang/String;
astore 4
4: StackMap locals: java.nio.file.Path java.lang.String
StackMap stack:
aload 4
ifnull 19
5: getstatic com.oracle.svm.hosted.image.sources.SourceCache.specialRootModules:[Ljava/lang/String;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 18
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top int int java.lang.String[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: aload 4
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
8: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.specialSrcRoots:Ljava/util/HashMap;
aload 5
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 15
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String java.lang.String int int java.lang.String[] top java.util.Iterator
StackMap stack:
9: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 9
start local 9 10: aload 9
iconst_1
iconst_2
invokeinterface java.nio.file.Path.subpath:(II)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc "."
aload 1
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 11
start local 11 11: aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 11
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
12: aload 0
aload 9
aload 1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.extendPath:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 12
start local 12 13: aload 0
aload 12
aload 3
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.tryCacheFileFromRoot:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z
ifeq 15
14: aload 1
areturn
end local 12 end local 11 end local 9 15: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
16: goto 19
end local 5 17: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top int int java.lang.String[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
18: iload 6
iload 7
if_icmplt 6
19: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 28
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top java.util.Iterator
StackMap stack:
20: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.svm.hosted.image.sources.SourceRoot
astore 5
start local 5 21: aload 4
ifnull 24
aload 5
getfield com.oracle.svm.hosted.image.sources.SourceRoot.isJDK:Z
ifeq 24
22: aload 4
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 7
start local 7 23: goto 25
end local 7 24: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String com.oracle.svm.hosted.image.sources.SourceRoot java.util.Iterator
StackMap stack:
aload 1
astore 7
start local 7 25: StackMap locals: java.nio.file.Path
StackMap stack:
aload 0
aload 5
getfield com.oracle.svm.hosted.image.sources.SourceRoot.path:Ljava/nio/file/Path;
aload 7
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.extendPath:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 8
start local 8 26: aload 0
aload 8
aload 3
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.tryCacheFileFromRoot:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z
ifeq 28
27: aload 1
areturn
end local 8 end local 7 end local 5 28: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
29: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 30 1 filePath Ljava/nio/file/Path;
0 30 2 clazz Ljava/lang/Class<*>;
1 30 3 targetPath Ljava/nio/file/Path;
2 30 4 moduleName Ljava/lang/String;
7 17 5 specialRootModule Ljava/lang/String;
10 15 9 srcRoot Ljava/nio/file/Path;
11 15 11 srcRootGroup Ljava/lang/String;
13 15 12 sourcePath Ljava/nio/file/Path;
21 28 5 root Lcom/oracle/svm/hosted/image/sources/SourceRoot;
23 24 7 scopedFilePath Ljava/nio/file/Path;
25 28 7 scopedFilePath Ljava/nio/file/Path;
26 28 8 sourcePath Ljava/nio/file/Path;
Signature: (Ljava/nio/file/Path;Ljava/lang/Class<*>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
filePath
clazz
protected boolean tryCacheFileFromRoot(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic com.oracle.svm.hosted.image.sources.SourceCache.checkSourcePath:(Ljava/nio/file/Path;)Z
ifeq 5
1: aload 2
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
invokestatic com.oracle.svm.hosted.image.sources.SourceCache.ensureTargetDirs:(Ljava/nio/file/Path;)V
2: aload 1
aload 2
iconst_2
anewarray java.nio.file.CopyOption
dup
iconst_0
getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardCopyOption.COPY_ATTRIBUTES:Ljava/nio/file/StandardCopyOption;
aastore
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack: java.io.IOException
pop
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 6 1 sourcePath Ljava/nio/file/Path;
0 6 2 targetPath Ljava/nio/file/Path;
Exception table:
from to target type
0 3 4 Class java.io.IOException
MethodParameters:
Name Flags
sourcePath
targetPath
protected java.nio.file.Path checkCacheFile(java.nio.file.Path, java.lang.Class<?>);
descriptor: (Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.cachedPath:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: getstatic org.graalvm.compiler.serviceprovider.JavaVersionUtil.JAVA_SPEC:I
bipush 11
if_icmplt 4
aload 2
ifnull 4
3: aload 2
invokestatic com.oracle.svm.util.ModuleSupport.getModuleName:(Ljava/lang/Class;)Ljava/lang/String;
astore 4
4: StackMap locals: java.nio.file.Path java.lang.String
StackMap stack:
aload 4
ifnull 23
5: getstatic com.oracle.svm.hosted.image.sources.SourceCache.specialRootModules:[Ljava/lang/String;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 22
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top int int java.lang.String[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: aload 4
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
8: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.specialSrcRoots:Ljava/util/HashMap;
aload 5
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 19
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String java.lang.String int int java.lang.String[] top java.util.Iterator
StackMap stack:
9: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 9
start local 9 10: aload 9
iconst_1
iconst_2
invokeinterface java.nio.file.Path.subpath:(II)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
ldc "."
aload 1
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 11
start local 11 11: aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 11
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 19
12: aload 0
aload 9
aload 1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.extendPath:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 12
start local 12 13: aload 0
aload 12
aload 3
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.tryCheckCacheFile:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z
ifeq 19
14: aload 1
15: areturn
16: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String java.lang.String int int java.lang.String[] java.nio.file.Path java.util.Iterator java.lang.String java.nio.file.Path
StackMap stack: java.io.IOException
pop
17: aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.delete:()Z
pop
18: aload 0
aload 1
aload 2
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.tryCacheFile:(Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
areturn
end local 12 end local 11 end local 9 19: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String java.lang.String int int java.lang.String[] top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
20: goto 23
end local 5 21: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top int int java.lang.String[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
22: iload 6
iload 7
if_icmplt 6
23: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String
StackMap stack:
aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.srcRoots:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 36
StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top java.util.Iterator
StackMap stack:
24: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.oracle.svm.hosted.image.sources.SourceRoot
astore 5
start local 5 25: aload 4
ifnull 28
aload 5
getfield com.oracle.svm.hosted.image.sources.SourceRoot.isJDK:Z
ifeq 28
26: aload 4
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aastore
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 7
start local 7 27: goto 29
end local 7 28: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String com.oracle.svm.hosted.image.sources.SourceRoot java.util.Iterator
StackMap stack:
aload 1
astore 7
start local 7 29: StackMap locals: java.nio.file.Path
StackMap stack:
aload 0
aload 5
getfield com.oracle.svm.hosted.image.sources.SourceRoot.path:Ljava/nio/file/Path;
aload 7
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.extendPath:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
astore 8
start local 8 30: aload 0
aload 8
aload 3
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.tryCheckCacheFile:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Z
ifeq 36
31: aload 1
32: areturn
33: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String com.oracle.svm.hosted.image.sources.SourceRoot java.util.Iterator java.nio.file.Path java.nio.file.Path
StackMap stack: java.io.IOException
pop
34: aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.delete:()Z
pop
35: aload 0
aload 1
aload 2
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.tryCacheFile:(Ljava/nio/file/Path;Ljava/lang/Class;)Ljava/nio/file/Path;
areturn
end local 8 end local 7 end local 5 36: StackMap locals: com.oracle.svm.hosted.image.sources.SourceCache java.nio.file.Path java.lang.Class java.nio.file.Path java.lang.String top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 24
37: aload 3
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.delete:()Z
pop
38: aconst_null
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 39 1 filePath Ljava/nio/file/Path;
0 39 2 clazz Ljava/lang/Class<*>;
1 39 3 targetPath Ljava/nio/file/Path;
2 39 4 moduleName Ljava/lang/String;
7 21 5 specialRootModule Ljava/lang/String;
10 19 9 srcRoot Ljava/nio/file/Path;
11 19 11 srcRootGroup Ljava/lang/String;
13 19 12 sourcePath Ljava/nio/file/Path;
25 36 5 root Lcom/oracle/svm/hosted/image/sources/SourceRoot;
27 28 7 scopedFilePath Ljava/nio/file/Path;
29 36 7 scopedFilePath Ljava/nio/file/Path;
30 36 8 sourcePath Ljava/nio/file/Path;
Exception table:
from to target type
13 15 16 Class java.io.IOException
30 32 33 Class java.io.IOException
Signature: (Ljava/nio/file/Path;Ljava/lang/Class<*>;)Ljava/nio/file/Path;
MethodParameters:
Name Flags
filePath
clazz
protected boolean tryCheckCacheFile(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic com.oracle.svm.hosted.image.sources.SourceCache.checkSourcePath:(Ljava/nio/file/Path;)Z
ifeq 6
1: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.getLastModifiedTime:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime;
astore 3
start local 3 2: aload 2
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.getLastModifiedTime:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime;
astore 4
start local 4 3: aload 4
aload 3
invokevirtual java.nio.file.attribute.FileTime.compareTo:(Ljava/nio/file/attribute/FileTime;)I
ifge 5
4: aload 1
aload 2
iconst_2
anewarray java.nio.file.CopyOption
dup
iconst_0
getstatic java.nio.file.StandardCopyOption.REPLACE_EXISTING:Ljava/nio/file/StandardCopyOption;
aastore
dup
iconst_1
getstatic java.nio.file.StandardCopyOption.COPY_ATTRIBUTES:Ljava/nio/file/StandardCopyOption;
aastore
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
5: StackMap locals: java.nio.file.attribute.FileTime java.nio.file.attribute.FileTime
StackMap stack:
iconst_1
ireturn
end local 4 end local 3 6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 7 1 sourcePath Ljava/nio/file/Path;
0 7 2 targetPath Ljava/nio/file/Path;
2 6 3 sourceTime Ljava/nio/file/attribute/FileTime;
3 6 4 destTime Ljava/nio/file/attribute/FileTime;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sourcePath
targetPath
protected java.nio.file.Path extendPath(java.nio.file.Path, java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 2
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
astore 4
start local 4 2: aload 1
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
invokevirtual java.nio.file.FileSystem.getSeparator:()Ljava/lang/String;
astore 5
start local 5 3: aload 4
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
4: aload 3
aload 4
aload 5
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 3
5: StackMap locals: java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 1
aload 3
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
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 6 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 6 1 root Ljava/nio/file/Path;
0 6 2 filePath Ljava/nio/file/Path;
1 6 3 filePathString Ljava/lang/String;
2 6 4 fileSeparator Ljava/lang/String;
3 6 5 newSeparator Ljava/lang/String;
MethodParameters:
Name Flags
root
filePath
protected java.nio.file.Path cachedPath(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/nio/file/Path;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.svm.hosted.image.sources.SourceCache.basePath:Ljava/nio/file/Path;
aload 1
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 1 1 candidate Ljava/nio/file/Path;
MethodParameters:
Name Flags
candidate
protected java.io.File cachedFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/io/File;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.cachedPath:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 1 1 candidate Ljava/nio/file/Path;
MethodParameters:
Name Flags
candidate
protected static boolean checkSourcePath(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isRegularFile:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sourcePath Ljava/nio/file/Path;
MethodParameters:
Name Flags
sourcePath
protected static void ensureTargetDirs(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
ifnull 4
1: aload 0
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
astore 1
start local 1 2: aload 1
invokevirtual java.io.File.exists:()Z
ifne 4
3: aload 0
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.mkdirs:()Z
pop
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 targetDir Ljava/nio/file/Path;
2 4 1 targetFile Ljava/io/File;
MethodParameters:
Name Flags
targetDir
private static void addClassPathEntry(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.svm.hosted.image.sources.SourceCache.classPathEntries:Ljava/util/List;
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 path Ljava/nio/file/Path;
MethodParameters:
Name Flags
path
private static void addSourcePathEntry(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.oracle.svm.hosted.image.sources.SourceCache.sourcePathEntries:Ljava/util/List;
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 path Ljava/lang/String;
MethodParameters:
Name Flags
path
private static boolean lambda$0(java.nio.file.Path, java.nio.file.attribute.BasicFileAttributes);
descriptor: (Ljava/nio/file/Path;Ljava/nio/file/attribute/BasicFileAttributes;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "src"
invokeinterface java.nio.file.Path.endsWith:(Ljava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/nio/file/Path;
0 1 1 attributes Ljava/nio/file/attribute/BasicFileAttributes;
private void lambda$2(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.addGraalSourceRoot:(Ljava/nio/file/Path;Z)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 1 1 classPathEntry Ljava/nio/file/Path;
private void lambda$3(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.addGraalSourceRoot:(Ljava/nio/file/Path;Z)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 1 1 sourcePathEntry Ljava/lang/String;
private void lambda$4(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.addApplicationSourceRoot:(Ljava/nio/file/Path;Z)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 1 1 classPathEntry Ljava/nio/file/Path;
private void lambda$5(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
invokevirtual com.oracle.svm.hosted.image.sources.SourceCache.addApplicationSourceRoot:(Ljava/nio/file/Path;Z)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/oracle/svm/hosted/image/sources/SourceCache;
0 1 1 sourcePathEntry Ljava/lang/String;
}
SourceFile: "SourceCache.java"
NestMembers:
com.oracle.svm.hosted.image.sources.SourceCache$SourceCacheFeature
InnerClasses:
public SourceCacheFeature = com.oracle.svm.hosted.image.sources.SourceCache$SourceCacheFeature of com.oracle.svm.hosted.image.sources.SourceCache
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles