mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 03:46:18 +08:00
Put object store memory on /dev/shm on linux (#89)
* put object store memory on /dev/shm on linux * fix * fix mac
This commit is contained in:
committed by
Robert Nishihara
parent
dd39008532
commit
03324caffc
@@ -68,8 +68,12 @@ int create_buffer(int64_t size) {
|
||||
(DWORD)(uint64_t) size, NULL)) {
|
||||
fd = -1;
|
||||
}
|
||||
#else
|
||||
#ifdef __linux__
|
||||
static char template[] = "/dev/shm/plasmaXXXXXX";
|
||||
#else
|
||||
static char template[] = "/tmp/plasmaXXXXXX";
|
||||
#endif
|
||||
char file_name[32];
|
||||
strncpy(file_name, template, 32);
|
||||
fd = mkstemp(file_name);
|
||||
|
||||
Reference in New Issue
Block a user