Partially revert be200074e9
for OS X systems
/dev/shm is not a tmpfs mountpoint on that operating system. Use /tmp but keep the unlinking to avoid useless disk IO.
This commit is contained in:
parent
60aed4e5b0
commit
90af798d3d
|
@ -29,7 +29,9 @@
|
|||
#include <cstring>
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32
|
||||
#if defined(__APPLE__)
|
||||
static const char* ram_temp_file = "/tmp/gc_mem.tmp";
|
||||
#elif !defined(_WIN32) // non OSX unixes
|
||||
static const char* ram_temp_file = "/dev/shm/gc_mem.tmp";
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue