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:
Pierre Bourdon 2012-08-25 03:30:37 +02:00
parent 60aed4e5b0
commit 90af798d3d
1 changed files with 3 additions and 1 deletions

View File

@ -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