summaryrefslogtreecommitdiff
path: root/build-support/java10-openjdk/jdk10u-jdk-10.0.2+13-oscontainer-wrong-compare.patch
blob: 549115ebb65fc2326eab3983ade38976ab07375d (plain)
1
2
3
4
5
6
7
8
9
10
11
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);