mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8244224: Implementation of JEP 381: Remove the Solaris and SPARC Ports
Reviewed-by: alanb, bchristi, dcubed, dfuchs, eosterlund, erikj, glaubitz, ihse, iignatyev, jjiang, kbarrett, ksrini, kvn, naoto, prr, rriggs, serb, sspitsyn, stefank, tschatzl, valeriep, weijun, weijun
This commit is contained in:
parent
9fe4b69c1a
commit
071bd521bc
954 changed files with 1093 additions and 127816 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2010, 2020, 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
|
||||
|
@ -40,7 +40,7 @@ import sun.security.action.GetPropertyAction;
|
|||
|
||||
public final class SdpSupport {
|
||||
private static final String os = GetPropertyAction.privilegedGetProperty("os.name");
|
||||
private static final boolean isSupported = (os.equals("SunOS") || (os.equals("Linux")));
|
||||
private static final boolean isSupported = os.equals("Linux");
|
||||
private static final JavaIOFileDescriptorAccess fdAccess =
|
||||
SharedSecrets.getJavaIOFileDescriptorAccess();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2020, 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
|
||||
|
@ -495,7 +495,7 @@ public class Net {
|
|||
private static native boolean isReusePortAvailable0();
|
||||
|
||||
/*
|
||||
* Returns 1 for Windows and -1 for Solaris/Linux/Mac OS
|
||||
* Returns 1 for Windows and -1 for Linux/Mac OS
|
||||
*/
|
||||
private static native int isExclusiveBindAvailable();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
|
@ -43,8 +43,6 @@
|
|||
#define SO_REUSEPORT 0
|
||||
#elif defined(__linux__)
|
||||
#define SO_REUSEPORT 15
|
||||
#elif defined(__solaris__)
|
||||
#define SO_REUSEPORT 0x100e
|
||||
#elif defined(AIX) || defined(MACOSX)
|
||||
#define SO_REUSEPORT 0x0200
|
||||
#else
|
||||
|
@ -52,10 +50,6 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* On Solaris, "sun" is defined as a macro. Undefine to make package
|
||||
declaration valid */
|
||||
#undef sun
|
||||
|
||||
/* To be able to name the Java constants the same as the C constants without
|
||||
having the preprocessor rewrite those identifiers, add PREFIX_ to all
|
||||
identifiers matching a C constant. The PREFIX_ is filtered out in the
|
||||
|
|
|
@ -300,14 +300,11 @@ public class KeyStoreUtil {
|
|||
public static void loadProviderByClass(
|
||||
String provClass, String arg, ClassLoader cl) {
|
||||
|
||||
// For compatibility, SunPKCS11, OracleUcrypto, and SunMSCAPI
|
||||
// For compatibility, SunPKCS11, and SunMSCAPI
|
||||
// can still be loadable with -providerClass.
|
||||
if (provClass.equals("sun.security.pkcs11.SunPKCS11")) {
|
||||
loadProviderByName("SunPKCS11", arg);
|
||||
return;
|
||||
} else if (provClass.equals("com.oracle.security.crypto.UcryptoProvider")) {
|
||||
loadProviderByName("OracleUcrypto", arg);
|
||||
return;
|
||||
} else if (provClass.equals("sun.security.mscapi.SunMSCAPI")) {
|
||||
loadProviderByName("SunMSCAPI", arg);
|
||||
return;
|
||||
|
|
|
@ -226,7 +226,6 @@ public final class KeyUtil {
|
|||
return providerName != null &&
|
||||
(providerName.equals("SunJCE") ||
|
||||
providerName.equals("SunMSCAPI") ||
|
||||
providerName.equals("OracleUcrypto") ||
|
||||
providerName.startsWith("SunPKCS11"));
|
||||
}
|
||||
|
||||
|
|
|
@ -60,12 +60,6 @@
|
|||
#
|
||||
# List of providers and their preference orders (see above):
|
||||
#
|
||||
#ifdef solaris
|
||||
# Note: The OracleUcrypto provider is deprecated and subject to removal in
|
||||
# a future version of the JDK.
|
||||
security.provider.tbd=OracleUcrypto
|
||||
security.provider.tbd=SunPKCS11 ${java.home}/conf/security/sunpkcs11-solaris.cfg
|
||||
#endif
|
||||
security.provider.tbd=SUN
|
||||
security.provider.tbd=SunRsaSign
|
||||
security.provider.tbd=SunEC
|
||||
|
@ -83,9 +77,7 @@ security.provider.tbd=SunMSCAPI
|
|||
#ifdef macosx
|
||||
security.provider.tbd=Apple
|
||||
#endif
|
||||
#ifndef solaris
|
||||
security.provider.tbd=SunPKCS11
|
||||
#endif
|
||||
|
||||
#
|
||||
# A list of preferred providers for specific algorithms. These providers will
|
||||
|
@ -119,12 +111,6 @@ security.provider.tbd=SunPKCS11
|
|||
# jdk.security.provider.preferred=AES/GCM/NoPadding:SunJCE, \
|
||||
# MessageDigest.SHA-256:SUN, Group.HmacSHA2:SunJCE
|
||||
#
|
||||
#ifdef solaris-sparc
|
||||
# Optional Solaris-SPARC configuration for non-FIPS 140 configurations.
|
||||
# jdk.security.provider.preferred=AES:SunJCE, SHA1:SUN, Group.SHA2:SUN, \
|
||||
# HmacSHA1:SunJCE, Group.HmacSHA2:SunJCE
|
||||
#
|
||||
#endif
|
||||
#jdk.security.provider.preferred=
|
||||
|
||||
|
||||
|
@ -135,7 +121,7 @@ security.provider.tbd=SunPKCS11
|
|||
# and "DRBG" SecureRandom implementations in the "Sun" provider.
|
||||
# (Other SecureRandom implementations might also use this property.)
|
||||
#
|
||||
# On Unix-like systems (for example, Solaris/Linux/MacOS), the
|
||||
# On Unix-like systems (for example, Linux/MacOS), the
|
||||
# "NativePRNG", "SHA1PRNG" and "DRBG" implementations obtains seed data from
|
||||
# special device files such as file:/dev/random.
|
||||
#
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2020, 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
|
||||
|
@ -60,7 +60,6 @@
|
|||
|
||||
#define JVM_ERROR1 "Error: Could not create the Java Virtual Machine.\n" GEN_ERROR
|
||||
#define JVM_ERROR2 "Error: Could not detach main thread.\n" JNI_ERROR
|
||||
#define JVM_ERROR3 "Error: SPARC V8 processor detected; Required V9 processors or better.\nUse JDK5 client compiler for V8 processors.\n" JVM_ERROR1
|
||||
|
||||
#define JAR_ERROR1 "Error: Failed to load Main-Class manifest attribute from\n%s\n%s"
|
||||
#define JAR_ERROR2 "Error: Unable to access jarfile %s"
|
||||
|
@ -94,7 +93,7 @@
|
|||
#define JRE_ERROR3 "Error: Improper value at line %d."
|
||||
#define JRE_ERROR4 "Error: trying to exec %s.\nCheck if file exists and permissions are set correctly."
|
||||
#define JRE_ERROR5 "Error: Failed to start a %d-bit JVM process from a %d-bit JVM."
|
||||
#define JRE_ERROR6 "Error: Verify all necessary Java SE components have been installed.\n(Solaris SPARC 64-bit components must be installed after 32-bit components.)"
|
||||
#define JRE_ERROR6 "Error: Verify all necessary Java SE components have been installed."
|
||||
#define JRE_ERROR7 "Error: Either 64-bit processes are not supported by this platform\nor the 64-bit components have not been installed."
|
||||
#define JRE_ERROR8 "Error: could not find "
|
||||
#define JRE_ERROR9 "Error: Unable to resolve %s"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2005, 2020, 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
|
||||
|
@ -104,9 +104,6 @@ JLI_CmdToArgs(char *cmdline);
|
|||
#define JLI_Open open
|
||||
#define JLI_PutEnv putenv
|
||||
#define JLI_GetPid getpid
|
||||
#ifdef __solaris__
|
||||
#define JLI_Lseek llseek
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
#define _LARGFILE64_SOURCE
|
||||
#define JLI_Lseek lseek64
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2020, 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
|
||||
|
@ -81,7 +81,6 @@ DEF_JNI_OnLoad(JavaVM *vm, void *reserved)
|
|||
/* check if SO_REUSEPORT is supported on this platform */
|
||||
REUSEPORT_available = reuseport_supported();
|
||||
platformInit();
|
||||
parseExclusiveBindProperty(env);
|
||||
|
||||
return JNI_VERSION_1_2;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2020, 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
|
||||
|
@ -156,8 +156,6 @@ NET_SockaddrToInetAddress(JNIEnv *env, SOCKETADDRESS *sa, int *port);
|
|||
|
||||
void platformInit();
|
||||
|
||||
void parseExclusiveBindProperty(JNIEnv *env);
|
||||
|
||||
JNIEXPORT jint JNICALL NET_GetPortFromSockaddr(SOCKETADDRESS *sa);
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue