Skip to content
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

Merge master jdk-19+28 into openj9-staging #10

Merged
merged 35 commits into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
4e2325e
8288289: Preview APIs in jdk.jdi, jdk.management, and jdk.jfr should …
Jun 15, 2022
348ec94
8288414: Long::compress/expand samples are not correct
Jun 15, 2022
f6af59f
8288526: ProblemList gc/stress/TestStressG1Humongous.java on windows-x64
Jun 15, 2022
ec162bd
8288533: Missing @param tags in com.sun.source classes
jonathan-gibbons Jun 15, 2022
6ae8201
8288534: Out of bound errors for memory segment access mentions wrong…
mcimadamore Jun 16, 2022
cd4748b
8287401: jpackage tests failing on Windows due to powershell issue
Jun 16, 2022
31e6117
8286176: Add JNI_VERSION_19 to jni.h and JNI spec
Jun 17, 2022
0e39735
8288545: Missing space in error message
jonathan-gibbons Jun 17, 2022
2de6d1b
8268398: 15% increase in JFR footprint in Noop-Base
egahlin Jun 17, 2022
d03b678
Use OpenSSL for the ECDH key agreement
Jun 10, 2022
4d36786
8288692: jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java fails af…
jonathan-gibbons Jun 17, 2022
d5547d4
8288397: AArch64: Fix register issues in SVE backend match rules
Jun 20, 2022
c9fd6ab
8288564: C2: LShiftLNode::Ideal produces wrong result after JDK-8278114
chhagedorn Jun 20, 2022
48ba820
8288485: jni/nullCaller/NullCallerTest.java failing (ppc64)
TheRealMDoerr Jun 20, 2022
aba2f3f
8287800: JFR: Incorrect error message when starting recording with mi…
egahlin Jun 20, 2022
10dcdd8
8288663: JFR: Disabling the JfrThreadSampler commits only a partially…
Jun 20, 2022
e1caa1c
8288741: JFR: Change package name of snippet files
egahlin Jun 20, 2022
c6c6746
8288527: broken link in java.base/java/util/zip/package-summary.html
Jun 20, 2022
e376f36
Merge pull request #6 from ZainabF92/nativeEC
keithc-ca Jun 20, 2022
ee65401
8288671: Problematic fix for font boosting
hns Jun 21, 2022
ed39e46
8288531: Empty spans in mobile navigation markup
hns Jun 21, 2022
0e1be4d
8288532: additional review changes for JDK-8286830
Jun 21, 2022
74a1e89
8278053: serviceability/jvmti/vthread/ContStackDepthTest/ContStackDep…
pron Jun 21, 2022
af4588d
8288761: SegmentAllocator:allocate(long bytesSize) not throwing IAEx …
mcimadamore Jun 21, 2022
ffe7dc1
8287971: Throw exception for missing values in .jpackage.xml
Jun 21, 2022
2dc3fb2
8288529: broken link in java.xml
JoeWang-Java Jun 22, 2022
54349c8
8287982: Concurrent implicit attach from native threads crashes VM
Jun 22, 2022
ec6abef
8288840: StructureViolationException should not link to fork method
Jun 22, 2022
7808c44
8288846: misc tests fail "assert(ms < 1000) failed: Un-interruptable …
Jun 22, 2022
be7bad7
Add stub implementation of NativeReferenceQueue
tajila Jun 21, 2022
c7edcd9
Merge pull request #9 from tajila/origin
pshipton Jun 22, 2022
2355ca9
Enable JITServer on supported platforms by default
dchopra001 Jun 20, 2022
abd1f9e
Merge pull request #8 from dchopra001/enableJITServer
keithc-ca Jun 23, 2022
b5d19a2
Merge master jdk-19+28 into openj9-staging
JasonFengJ9 Jun 24, 2022
7fd5dcb
Update OPENJDK_TAG to merged level jdk-19+28
JasonFengJ9 Jun 24, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion closed/autoconf/custom-hook.m4
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,15 @@ AC_DEFUN([OPENJ9_CONFIGURE_JITSERVER],
elif test "x$enable_jitserver" = xno ; then
AC_MSG_RESULT([no (explicitly disabled)])
elif test "x$enable_jitserver" = x ; then
AC_MSG_RESULT([no (default)])
case "$OPENJ9_PLATFORM_CODE" in
xa64|xl64|xz64)
AC_MSG_RESULT([yes (default)])
OPENJ9_ENABLE_JITSERVER=true
;;
*)
AC_MSG_RESULT([no (default)])
;;
esac
else
AC_MSG_ERROR([--enable-jitserver accepts no argument])
fi
Expand Down
2 changes: 1 addition & 1 deletion closed/openjdk-tag.gmk
Original file line number Diff line number Diff line change
@@ -1 +1 @@
OPENJDK_TAG := jdk-19+27
OPENJDK_TAG := jdk-19+28
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* ===========================================================================
* (c) Copyright IBM Corp. 2022, 2022 All Rights Reserved
* ===========================================================================
*/
package java.lang.ref;

/**
* An implementation of a ReferenceQueue that uses native monitors.
* The use of java.util.concurrent.lock locks interacts with various mechanisms,
* such as virtual threads and ForkJoinPool, that might not be appropriate for some
* low-level mechanisms, in particular MethodType's weak intern set.
*/
final class NativeReferenceQueue<T> extends ReferenceQueue<T> {
public NativeReferenceQueue() {
super(0);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,20 @@
*/
package jdk.crypto.jniprovider;

import java.lang.ref.Cleaner;
import java.security.*;

import com.ibm.oti.vm.VM;

import jdk.internal.misc.Unsafe;
import jdk.internal.ref.CleanerFactory;
import jdk.internal.reflect.Reflection;
import jdk.internal.reflect.CallerSensitive;

public class NativeCrypto {

private static final Cleaner ECKeyCleaner = CleanerFactory.cleaner();

//ossl_vers:
// -1 : library load failed
// 0 : openssl 1.0.x
Expand Down Expand Up @@ -79,6 +83,15 @@ public static NativeCrypto getNativeCrypto() {
throw new SecurityException("NativeCrypto");
}

public void createECKeyCleaner(Object owner, long key) {
ECKeyCleaner.register(owner, new Runnable() {
@Override
public void run() {
NativeCrypto.this.ECDestroyKey(key);
}
});
}

/* Native digest interfaces */

private static final native int loadCrypto(boolean trace);
Expand Down Expand Up @@ -230,4 +243,56 @@ public final native int ChaCha20FinalDecrypt(long context,
int aadLen,
int tagLen);

/* Native EC interfaces */
public final native int ECCreatePublicKey(long key,
byte[] x,
int xLen,
byte[] y,
int yLen,
int field);

public final native int ECCreatePrivateKey(long key,
byte[] s,
int sLen);

public final native long ECEncodeGFp(byte[] a,
int aLen,
byte[] b,
int bLen,
byte[] p,
int pLen,
byte[] x,
int xLen,
byte[] y,
int yLen,
byte[] n,
int nLen,
byte[] h,
int hLen);

public final native long ECEncodeGF2m(byte[] a,
int aLen,
byte[] b,
int bLen,
byte[] p,
int pLen,
byte[] x,
int xLen,
byte[] y,
int yLen,
byte[] n,
int nLen,
byte[] h,
int hLen);

public final native int ECDestroyKey(long key);

public final native int ECDeriveKey(long publicKey,
long privateKey,
byte[] secret,
int secretOffset,
int secretLen);

public final native boolean ECNativeGF2m();

}
Loading