-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix lookup of jvmci and compiler sources im JDK src.zip #2680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.../src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/NativeImageDebugInfoProvider.java
Outdated
Show resolved
Hide resolved
...tratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources/SourceManager.java
Outdated
Show resolved
Hide resolved
zakkak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW it LGTM
|
|
||
| @Override | ||
| public Path checkCacheFile(Path filePath) { | ||
| if (!isJDK8()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use JavaVersionUtil.JAVA_SPEC >= 11 (like elsewhere)
|
|
||
| @Override | ||
| public Path tryCacheFile(Path filePath) { | ||
| if (!isJDK8()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| */ | ||
| private static String javaSpecVersion = System.getProperty(JAVA_SPEC_VERSION_PROP); | ||
|
|
||
| public static boolean isJDK8() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
...tratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/image/sources/SourceManager.java
Outdated
Show resolved
Hide resolved
| * A whitelist of packages prefixes used to pre-filter JDK runtime class lookups. | ||
| * An accept list of packages prefixes used to pre-filter JDK11+ runtime class lookups. | ||
| */ | ||
| public static final String[] JDK_SRC_PACKAGE_PREFIXES = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JDK_SRC_PACKAGE_PREFIXES = Stream.concat(Stream.of(JDK8_SRC_PACKAGE_PREFIXES), Stream.of("org.graalvm.compiler")).toArray(String[]::new);
olpaw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Please fix the little things. I should be able to get to merging early next week.
Thanks!
|
Hi Paul, Thanks for the review. I have made all changes as requested. |
|
@adinn your PR is in the merge queue. |
|
Changes are on master. e17b00a |
|
@olpaw Thanks for your help! |
Fix for issue #2679