Add patch for JDK-8218811, which fixes a GCC 10 build issue
This commit is contained in:
parent
e2c0e0e311
commit
4408c26107
@ -1120,6 +1120,9 @@ Patch400: pr3183-rh1340845-support_fedora_rhel_system_crypto_policy.patch
|
|||||||
Patch401: pr3655-toggle_system_crypto_policy.patch
|
Patch401: pr3655-toggle_system_crypto_policy.patch
|
||||||
# JDK-8219772: EXTRA_CFLAGS not being picked up for assembler files
|
# JDK-8219772: EXTRA_CFLAGS not being picked up for assembler files
|
||||||
Patch110: jdk8219772-extra_c_cxx_flags_not_picked_for_assembler_source.patch
|
Patch110: jdk8219772-extra_c_cxx_flags_not_picked_for_assembler_source.patch
|
||||||
|
# JDK-8218811: replace open by os::open in hotspot coding
|
||||||
|
# This fixes a GCC 10 build issue
|
||||||
|
Patch111: jdk8218811-perfMemory_linux.patch
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
#
|
#
|
||||||
@ -1543,6 +1546,7 @@ sh %{SOURCE12}
|
|||||||
%patch575
|
%patch575
|
||||||
%patch577
|
%patch577
|
||||||
%patch110
|
%patch110
|
||||||
|
%patch111
|
||||||
|
|
||||||
# RPM-only fixes
|
# RPM-only fixes
|
||||||
%patch539
|
%patch539
|
||||||
|
12
jdk8218811-perfMemory_linux.patch
Normal file
12
jdk8218811-perfMemory_linux.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git openjdk.orig/hotspot/src/os/linux/vm/perfMemory_linux.cpp openjdk/hotspot/src/os/linux/vm/perfMemory_linux.cpp
|
||||||
|
--- openjdk.orig/hotspot/src/os/linux/vm/perfMemory_linux.cpp
|
||||||
|
+++ openjdk/hotspot/src/os/linux/vm/perfMemory_linux.cpp
|
||||||
|
@@ -878,7 +878,7 @@
|
||||||
|
|
||||||
|
// open the file
|
||||||
|
int result;
|
||||||
|
- RESTARTABLE(::open(filename, oflags), result);
|
||||||
|
+ RESTARTABLE(::open(filename, oflags, 0), result);
|
||||||
|
if (result == OS_ERR) {
|
||||||
|
if (errno == ENOENT) {
|
||||||
|
THROW_MSG_(vmSymbols::java_lang_IllegalArgumentException(),
|
Loading…
Reference in New Issue
Block a user