Skip to content

Commit 178c97b

Browse files
committed
Merge pull request #1557 from hjelmn/new_hooks_update
memory/patcher: munmap hook could be called from within a malloc() implementation
2 parents 95c06cf + a8e90e8 commit 178c97b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opal/mca/memory/patcher/memory_patcher_component.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ static int intercept_munmap(void *start, size_t length)
138138
OPAL_PATCHER_BEGIN;
139139
int result = 0;
140140

141-
opal_mem_hooks_release_hook (start, length, false);
141+
/* could be in a malloc implementation */
142+
opal_mem_hooks_release_hook (start, length, true);
142143

143144
if (!original_munmap) {
144145
result = memory_patcher_syscall(SYS_munmap, start, length);

0 commit comments

Comments
 (0)