< prev index next >

src/hotspot/os/linux/gc/z/zMountPoint_linux.cpp

Print this page

        

*** 23,44 **** #include "precompiled.hpp" #include "gc/z/zArray.inline.hpp" #include "gc/z/zErrno.hpp" #include "gc/z/zMountPoint_linux.hpp" #include "logging/log.hpp" #include <stdio.h> #include <unistd.h> // Mount information, see proc(5) for more details. #define PROC_SELF_MOUNTINFO "/proc/self/mountinfo" ZMountPoint::ZMountPoint(const char* filesystem, const char** preferred_mountpoints) { ! if (ZPath != NULL) { // Use specified path ! _path = strdup(ZPath); } else { // Find suitable path _path = find_mountpoint(filesystem, preferred_mountpoints); } } --- 23,45 ---- #include "precompiled.hpp" #include "gc/z/zArray.inline.hpp" #include "gc/z/zErrno.hpp" #include "gc/z/zMountPoint_linux.hpp" + #include "runtime/globals.hpp" #include "logging/log.hpp" #include <stdio.h> #include <unistd.h> // Mount information, see proc(5) for more details. #define PROC_SELF_MOUNTINFO "/proc/self/mountinfo" ZMountPoint::ZMountPoint(const char* filesystem, const char** preferred_mountpoints) { ! if (AllocateHeapAt != NULL) { // Use specified path ! _path = strdup(AllocateHeapAt); } else { // Find suitable path _path = find_mountpoint(filesystem, preferred_mountpoints); } }
< prev index next >