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:
1 parent
60aed4e5b0
commit
90af798d3d
1 file changed
+3
-1
@@ -29,7 +29,9 @@
|
|||||||
#include <cstring>
|
#include <cstring>
|
||||||
#endif
|
#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";
|
static const char* ram_temp_file = "/dev/shm/gc_mem.tmp";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user