--- jdk10u-jdk-10.0.2+13.orig/src/hotspot/os/linux/os_linux.cpp +++ jdk10u-jdk-10.0.2+13/src/hotspot/os/linux/os_linux.cpp @@ -2155,7 +2155,7 @@ } p = OSContainer::cpu_cpuset_memory_nodes(); - if (p < 0) + if (p < (void *)0) st->print("cpu_memory_nodes() failed\n"); else { st->print("cpu_memory_nodes: %s\n", p);