Merge pull request #1557 from hjelmn/new_hooks_update
memory/patcher: munmap hook could be called from within a malloc() implementation
Этот коммит содержится в:
Коммит
178c97b406
@ -138,7 +138,8 @@ static int intercept_munmap(void *start, size_t length)
|
|||||||
OPAL_PATCHER_BEGIN;
|
OPAL_PATCHER_BEGIN;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
opal_mem_hooks_release_hook (start, length, false);
|
/* could be in a malloc implementation */
|
||||||
|
opal_mem_hooks_release_hook (start, length, true);
|
||||||
|
|
||||||
if (!original_munmap) {
|
if (!original_munmap) {
|
||||||
result = memory_patcher_syscall(SYS_munmap, start, length);
|
result = memory_patcher_syscall(SYS_munmap, start, length);
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user