Skip to content

Commit 6eeb6cb

Browse files
committed
fixup! erts: Fair handover of code permissions to first waiter
1 parent 6f5a014 commit 6eeb6cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

erts/emulator/beam/code_ix.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ static void release_code_permission(struct code_permission *perm,
322322
/*
323323
* Avoid processes doing potentially long GC.
324324
* Resume them and let them retry after GC is done.
325+
* This can only happen if someone has sent the waiting
326+
* suspended process a GC signal.
325327
*/
326328
xstate = erts_atomic32_read_nob(&(qitem->p->xstate));
327329
while (!(xstate & ERTS_PXSFLG_GC)) {

0 commit comments

Comments
 (0)