From 90af798d3d9e26d1fb588127242e767ef24c5eec Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 25 Aug 2012 03:30:37 +0200 Subject: [PATCH] Partially revert be200074e9ed 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. --- Source/Core/Common/Src/MemArena.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/MemArena.cpp b/Source/Core/Common/Src/MemArena.cpp index 12a2585120..4af9da3415 100644 --- a/Source/Core/Common/Src/MemArena.cpp +++ b/Source/Core/Common/Src/MemArena.cpp @@ -29,7 +29,9 @@ #include #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