summaryrefslogtreecommitdiff
path: root/build-support/java10-openjdk/jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare.patch
diff options
context:
space:
mode:
Diffstat (limited to 'build-support/java10-openjdk/jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare.patch')
-rw-r--r--build-support/java10-openjdk/jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/build-support/java10-openjdk/jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare.patch b/build-support/java10-openjdk/jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare.patch
new file mode 100644
index 00000000..549115eb
--- /dev/null
+++ b/build-support/java10-openjdk/jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare.patch
@@ -0,0 +1,12 @@
+diff -rauN jdk10u-jdk-10.0.2+13/src/hotspot/os/linux/os_linux.cpp jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare-patch/src/hotspot/os/linux/os_linux.cpp
+--- jdk10u-jdk-10.0.2+13/src/hotspot/os/linux/os_linux.cpp 2018-06-24 16:07:06.000000000 +0200
++++ jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare-patch/src/hotspot/os/linux/os_linux.cpp 2021-05-17 17:26:13.438603378 +0200
+@@ -2155,7 +2155,7 @@
+ }
+
+ p = OSContainer::cpu_cpuset_memory_nodes();
+- if (p < 0)
++ if (p == NULL)
+ st->print("cpu_memory_nodes() failed\n");
+ else {
+ st->print("cpu_memory_nodes: %s\n", p);