Check to ensure that the mmap succeeded. Thanks to Julia Seward for
pointing out the problem and suggesting the fix. This commit was SVN r22055.
Этот коммит содержится в:
родитель
14e6952482
Коммит
932b43be04
@ -134,6 +134,9 @@ static int ptmalloc2_open(void)
|
||||
}
|
||||
|
||||
p = mmap(NULL, 4096, PROT_READ, MAP_ANONYMOUS, -1, 0);
|
||||
if (NULL == p) {
|
||||
return OPAL_ERR_OUT_OF_RESOURCE;
|
||||
}
|
||||
munmap(p, 4096);
|
||||
|
||||
if (opal_memory_ptmalloc2_munmap_invoked) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user