Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Partially revert be20007 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.
  • Loading branch information
delroth committed Aug 25, 2012
1 parent 60aed4e commit 90af798
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/Common/Src/MemArena.cpp
Expand Up @@ -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

Expand Down

0 comments on commit 90af798

Please sign in to comment.