MemArena.cpp: Fix Bus Error when running on Beaglebone/Beaglebone Black

* Similar to commit 178891b57608a8df1541b3f7fc6ee83ad1b50989 when running the
  emulator a "Bus Error" would be given andn will cause a seg fault immediately.
* When running on the BB change the path of the ram temp file to a valid
  location.

Signed-off-by: Franklin S Cooper Jr <fcooper27@gmail.com>
This commit is contained in:
Franklin S Cooper Jr 2014-09-26 19:07:34 -05:00
parent 08303678a4
commit 50b8debead

View File

@ -99,6 +99,8 @@ int ashmem_unpin_region(int fd, size_t offset, size_t len)
// do not make this "static"
#ifdef MAEMO
std::string ram_temp_file = "/home/user/gc_mem.tmp";
#elif defined(BB)
std::string ram_temp_file = "/home/root/gc_mem.tmp";
#else
std::string ram_temp_file = "/tmp/gc_mem.tmp";
#endif