Skip to content

Commit

Permalink
Update to JVMCI-19.2-b03.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzarghili committed Oct 12, 2019
1 parent 34a708d commit 41bb4a3
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jdk:

env:
global:
- JVMCI_VERSION="jvmci-19.2-b01"
- JDK8_UPDATE_VERSION="212"
- JVMCI_VERSION="jvmci-19.2-b03"
- JDK8_UPDATE_VERSION="232"
- JDK8_UPDATE_VERSION_SUFFIX=""

matrix:
Expand Down
6 changes: 3 additions & 3 deletions common.hocon
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ overlay = 24a9cd249544a2c8b61e225aa1f02c85db569fc4
# openjdk8 JDKs on Linux are built by Oracle Labs
# openjdk8 JDKs on macOS are based on AdoptOpenJDK binaries
jdks: {
oraclejdk8: {name : oraclejdk, version : "8u221-jvmci-19.2-b02", platformspecific: true}
openjdk8: {name : openjdk, version : "8u222-jvmci-19.2-b02", platformspecific: true}
oraclejdk8Debug: {name : oraclejdk, version : "8u221-jvmci-19.2-b02-fastdebug", platformspecific: true}
oraclejdk8: {name : oraclejdk, version : "8u231-jvmci-19.2-b03", platformspecific: true}
openjdk8: {name : openjdk, version : "8u232-jvmci-19.2-b03", platformspecific: true}
oraclejdk8Debug: {name : oraclejdk, version : "8u231-jvmci-19.2-b03-fastdebug", platformspecific: true}
oraclejdk11: {name : oraclejdk, version : "11.0.3+12", platformspecific: true}
openjdk11: {name : openjdk, version : "11.0.3+7", platformspecific: true}
}
Expand Down
4 changes: 2 additions & 2 deletions compiler/mx.compiler/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"sourceinprojectwhitelist" : [],

"groupId" : "org.graalvm.compiler",
"version" : "19.2.0.1",
"release" : True,
"version" : "19.2.1",
"release" : False,
"url" : "http://www.graalvm.org/",
"developer" : {
"name" : "Truffle and Graal developers",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ public CheckGraalIntrinsics() {

String cbcEncryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "com/sun/crypto/provider/CipherBlockChaining", "implEncrypt", "encrypt");
String cbcDecryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "com/sun/crypto/provider/CipherBlockChaining", "implDecrypt", "decrypt");
String aesEncryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt", "implEncryptBlock", "encryptBlock" );
String aesDecryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt", "implDecryptBlock", "decryptBlock" );
String aesEncryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt", "implEncryptBlock", "encryptBlock");
String aesDecryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt", "implDecryptBlock", "decryptBlock");

// AES intrinsics
if (!config.useAESIntrinsics) {
add(ignore,
Expand Down Expand Up @@ -533,7 +533,8 @@ public CheckGraalIntrinsics() {
add(ignore, "java/math/BigInteger.implSquareToLen([II[II)[I");
}
// DigestBase intrinsics
if (HotSpotGraphBuilderPlugins.isIntrinsicName(config, "sun/security/provider/DigestBase", "implCompressMultiBlock0") && !(config.useSHA1Intrinsics() || config.useSHA256Intrinsics() || config.useSHA512Intrinsics())) {
if (HotSpotGraphBuilderPlugins.isIntrinsicName(config, "sun/security/provider/DigestBase", "implCompressMultiBlock0") &&
!(config.useSHA1Intrinsics() || config.useSHA256Intrinsics() || config.useSHA512Intrinsics())) {
add(ignore, "sun/security/provider/DigestBase.implCompressMultiBlock0([BII)I");
}
// SHA intrinsics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public HotSpotCryptoSubstitutionTest() throws Exception {

@Test
public void testAESCryptIntrinsics() throws Exception {
String aesEncryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(runtime().getVMConfig(), "com/sun/crypto/provider/AESCrypt", "implEncryptBlock" , "encryptBlock");
String aesDecryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(runtime().getVMConfig(), "com/sun/crypto/provider/AESCrypt", "implDecryptBlock" , "decryptBlock");
String aesEncryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(runtime().getVMConfig(), "com/sun/crypto/provider/AESCrypt", "implEncryptBlock", "encryptBlock");
String aesDecryptName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(runtime().getVMConfig(), "com/sun/crypto/provider/AESCrypt", "implDecryptBlock", "decryptBlock");
if (compileAndInstall("com.sun.crypto.provider.AESCrypt", aesEncryptName, aesDecryptName)) {
ByteArrayOutputStream actual = new ByteArrayOutputStream();
actual.write(runEncryptDecrypt(aesKey, "AES/CBC/NoPadding"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ GraalHotSpotVMConfig getConfig() {
@Test
public void testSha1() {
if (getConfig().useSHA1Intrinsics()) {
String implCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(getConfig(), "sun/security/provider/SHA", "implCompress0" , "implCompress");
String implCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(getConfig(), "sun/security/provider/SHA", "implCompress0", "implCompress");
testWithInstalledIntrinsic("sun.security.provider.SHA", implCompressName, "testDigest", "SHA-1", getData());
}
}
Expand Down Expand Up @@ -106,15 +106,15 @@ void testWithInstalledIntrinsic(String className, String methodName, String test
@Test
public void testSha256() {
if (getConfig().useSHA256Intrinsics()) {
String implCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(getConfig(), "sun/security/provider/SHA", "implCompress0" , "implCompress");
String implCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(getConfig(), "sun/security/provider/SHA", "implCompress0", "implCompress");
testWithInstalledIntrinsic("sun.security.provider.SHA2", implCompressName, "testDigest", "SHA-256", getData());
}
}

@Test
public void testSha512() {
if (getConfig().useSHA512Intrinsics()) {
String implCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(getConfig(), "sun/security/provider/SHA", "implCompress0" , "implCompress");
String implCompressName = HotSpotGraphBuilderPlugins.lookupIntrinsicName(getConfig(), "sun/security/provider/SHA", "implCompress0", "implCompress");
testWithInstalledIntrinsic("sun.security.provider.SHA5", implCompressName, "testDigest", "SHA-512", getData());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,6 @@ public boolean apply(GraphBuilderContext b, ResolvedJavaMethod targetMethod, Rec
r.registerMethodSubstitution(ThreadSubstitutions.class, "isInterrupted", Receiver.class, boolean.class);
}


public static final String reflectionClass;
public static final String constantPoolClass;

Expand Down Expand Up @@ -472,7 +471,7 @@ public static boolean isIntrinsicName(GraalHotSpotVMConfig config, String classN
}
return false;
}

private static void registerAESPlugins(InvocationPlugins plugins, GraalHotSpotVMConfig config, BytecodeProvider bytecodeProvider) {
if (config.useAESIntrinsics) {
assert config.aescryptEncryptBlockStub != 0L;
Expand All @@ -482,15 +481,15 @@ private static void registerAESPlugins(InvocationPlugins plugins, GraalHotSpotVM
String arch = config.osArch;
String decryptSuffix = arch.equals("sparc") ? "WithOriginalKey" : "";

String cbcEncryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/CipherBlockChaining" , "implEncrypt" , "encrypt");
String cbcDecryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/CipherBlockChaining" , "implDecrypt" , "decrypt");
String cbcEncryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/CipherBlockChaining", "implEncrypt", "encrypt");
String cbcDecryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/CipherBlockChaining", "implDecrypt", "decrypt");
Registration r = new Registration(plugins, "com.sun.crypto.provider.CipherBlockChaining", bytecodeProvider);
r.registerMethodSubstitution(CipherBlockChainingSubstitutions.class, cbcEncryptName, Receiver.class, byte[].class, int.class, int.class, byte[].class, int.class);
r.registerMethodSubstitution(CipherBlockChainingSubstitutions.class, cbcDecryptName, cbcDecryptName + decryptSuffix, Receiver.class, byte[].class, int.class, int.class, byte[].class,
int.class);
String aesEncryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt" , "implEncryptBlock" , "encryptBlock");
String aesDecryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt" , "implDecryptBlock" , "decryptBlock");

String aesEncryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt", "implEncryptBlock", "encryptBlock");
String aesDecryptName = lookupIntrinsicName(config, "com/sun/crypto/provider/AESCrypt", "implDecryptBlock", "decryptBlock");

r = new Registration(plugins, "com.sun.crypto.provider.AESCrypt", bytecodeProvider);
r.registerMethodSubstitution(AESCryptSubstitutions.class, aesEncryptName, Receiver.class, byte[].class, int.class, byte[].class, int.class);
Expand Down Expand Up @@ -529,12 +528,12 @@ private static void registerSHAPlugins(InvocationPlugins plugins, GraalHotSpotVM
boolean useSha256 = config.useSHA256Intrinsics();
boolean useSha512 = config.useSHA512Intrinsics();

if (isIntrinsicName(config, "sun.security.provider.DigestBase", "implCompressMultiBlock0") && (useSha1 || useSha256 || useSha512)) {
if (isIntrinsicName(config, "sun/security/provider/DigestBase", "implCompressMultiBlock0") && (useSha1 || useSha256 || useSha512)) {
Registration r = new Registration(plugins, "sun.security.provider.DigestBase", bytecodeProvider);
r.registerMethodSubstitution(DigestBaseSubstitutions.class, "implCompressMultiBlock0", Receiver.class, byte[].class, int.class, int.class);
}

String implCompressName = lookupIntrinsicName(config, "sun/security/provider/SHA", "implCompress" , "implCompress0");
String implCompressName = lookupIntrinsicName(config, "sun/security/provider/SHA", "implCompress", "implCompress0");
if (useSha1) {
assert config.sha1ImplCompress != 0L;
Registration r = new Registration(plugins, "sun.security.provider.SHA", bytecodeProvider);
Expand Down
4 changes: 2 additions & 2 deletions regex/mx.regex/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@

"name" : "regex",

"version" : "19.2.0.1",
"release" : True,
"version" : "19.2.1",
"release" : False,
"groupId" : "org.graalvm.regex",
"url" : "http://www.graalvm.org/",
"developer" : {
Expand Down
4 changes: 2 additions & 2 deletions sdk/mx.sdk/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
suite = {
"mxversion" : "5.223.0",
"name" : "sdk",
"version" : "19.2.0.1",
"release" : True,
"version" : "19.2.1",
"release" : False,
"sourceinprojectwhitelist" : [],
"url" : "https://github.com/oracle/graal",
"groupId" : "org.graalvm.sdk",
Expand Down
4 changes: 2 additions & 2 deletions substratevm/mx.substratevm/suite.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
suite = {
"mxversion": "5.223.0",
"name": "substratevm",
"version" : "19.2.0.1",
"release" : True,
"version" : "19.2.1",
"release" : False,
"url" : "https://github.com/oracle/graal/tree/master/substratevm",

"developer" : {
Expand Down
4 changes: 2 additions & 2 deletions tools/mx.tools/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"defaultLicense" : "GPLv2-CPE",

"groupId" : "org.graalvm.tools",
"version" : "19.2.0.1",
"release" : True,
"version" : "19.2.1",
"release" : False,
"url" : "http://openjdk.java.net/projects/graal",
"developer" : {
"name" : "Truffle and Graal developers",
Expand Down
4 changes: 2 additions & 2 deletions truffle/mx.truffle/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
suite = {
"mxversion" : "5.223.0",
"name" : "truffle",
"version" : "19.2.0.1",
"release" : True,
"version" : "19.2.1",
"release" : False,
"groupId" : "org.graalvm.truffle",
"sourceinprojectwhitelist" : [],
"url" : "http://openjdk.java.net/projects/graal",
Expand Down
8 changes: 4 additions & 4 deletions vm/mx.vm/suite.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
suite = {
"name": "vm",
"version" : "19.2.0.1",
"version" : "19.2.1",
"mxversion" : "5.227.0",
"release" : True,
"release" : False,
"groupId" : "org.graalvm",

"url" : "http://www.graalvm.org/",
Expand Down Expand Up @@ -32,7 +32,7 @@
"name": "graal-nodejs",
"subdir": True,
"dynamic": True,
"version": "5680c31767d17574089be120ba60ce750347bbc9",
"version": "a40c01b135b0db5fd0d671e483e955175c46d181",
"urls" : [
{"url" : "https://github.com/graalvm/graaljs.git", "kind" : "git"},
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},
Expand All @@ -42,7 +42,7 @@
"name": "graal-js",
"subdir": True,
"dynamic": True,
"version": "5680c31767d17574089be120ba60ce750347bbc9",
"version": "a40c01b135b0db5fd0d671e483e955175c46d181",
"urls": [
{"url": "https://github.com/graalvm/graaljs.git", "kind" : "git"},
{"url": "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind": "binary"},
Expand Down

0 comments on commit 41bb4a3

Please sign in to comment.