diff --git a/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp b/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp index 46da39fcc6d6..a09323a88708 100644 --- a/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp +++ b/java/openjdk8/files/patch-hotspot_src_os_bsd_vm_os__bsd.cpp @@ -47,7 +47,7 @@ return ((jlong)tinfo.user_time.seconds * 1000000000) + ((jlong)tinfo.user_time.microseconds * (jlong)1000); } #else -+ if (Bsd::_getcpuclockid != NULL) { ++ if (user_sys_cpu_time && Bsd::_getcpuclockid != NULL) { + struct timespec tp; + clockid_t clockid; + int ret;