1 --- ./hotspot-jdk-9+@TAG_VER@/src/os/linux/vm/os_linux.cpp 2017-01-13 05:11:16.000000000 +0530
2 +++ ../os_linux.cpp 2017-02-05 11:25:25.918994081 +0530
6 # include <sys/sysinfo.h>
8 # include <gnu/libc-version.h>
14 // detecting pthread library
16 void os::Linux::libpthread_init() {
18 // Save glibc and pthread version strings.
19 #if !defined(_CS_GNU_LIBC_VERSION) || \
20 !defined(_CS_GNU_LIBPTHREAD_VERSION)
22 str = (char *)malloc(n, mtInternal);
23 confstr(_CS_GNU_LIBPTHREAD_VERSION, str, n);
24 os::Linux::set_libpthread_version(str);
26 + os::Linux::set_glibc_version("bionic 21");
27 + os::Linux::set_libpthread_version("pthread 21");
31 /////////////////////////////////////////////////////////////////////////////
32 @@ -2809,7 +2816,10 @@
33 // If we are running with earlier version, which did not have symbol versions,
34 // we should use the base version.
35 void* os::Linux::libnuma_dlsym(void* handle, const char *name) {
36 - void *f = dlvsym(handle, name, "libnuma_1.1");
39 + f = dlvsym(handle, name, "libnuma_1.1");
42 f = dlsym(handle, name);
44 @@ -5471,7 +5481,11 @@
45 // Linux doesn't yet have a (official) notion of processor sets,
46 // so just return the system wide load average.
47 int os::loadavg(double loadavg[], int nelem) {
51 return ::getloadavg(loadavg, nelem);
56 @@ -6194,7 +6208,15 @@
58 int ret = os::stat(filename, &st);
59 assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno));
62 + unsigned long ms = st.st_mtime;
63 + ts.tv_sec = ms / 1000;
64 + ts.tv_nsec = (ms % 1000) * 1000000;
71 int os::compare_file_modified_times(const char* file1, const char* file2) {