Skip to content

Commit 5eb7514

Browse files
committed
Init the arena after initializing the trampoline
1 parent 839215c commit 5eb7514

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/perf_trampoline.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ _PyPerfTrampoline_Init(int activate)
504504
if (trampoline_api.state == NULL && trampoline_api.init_state != NULL) {
505505
trampoline_api.state = trampoline_api.init_state();
506506
}
507+
if (new_code_arena() < 0) {
508+
return -1;
509+
}
507510
perf_status = PERF_STATUS_OK;
508511
}
509512
#endif

0 commit comments

Comments
 (0)