[11u] RFR: backport JDK-8247246: Add explicit ResolvedJavaType.link and expose, presence of default methods

Foivos Zakkak fzakkak at redhat.com
Wed Jul 1 12:12:09 UTC 2020


Hello all,

I am attaching a backport
https://bugs.openjdk.java.net/browse/JDK-8247246 to jdk11u-dev.

This backport fixes https://github.com/oracle/graal/issues/2628

The backport applied cleanly except for some minor issues which I
resolved by changing:

JVMCI_THROW(NullPointerException);
to
THROW(vmSymbols::java_lang_NullPointerException());

and

Klass* klass = JVMCIENV->asKlass(jvmci_type);
to
Klass* klass = CompilerToVM::asKlass(jvmci_type);


The backport has been successfully tested using:

make run-test TEST="hotspot/jtreg/compiler/jvmci"
make run-test-tier1

I have also successfully built graal master against the patched JDK

Thanks,
Foivos Zakkak

PS: Pretty happy to submit my first contribution to OpenJDK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8247246-jdk11u-dev-backport.patch
Type: text/x-patch
Size: 17601 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/jdk-updates-dev/attachments/20200701/b95afadb/8247246-jdk11u-dev-backport-0001.patch>


More information about the jdk-updates-dev mailing list