Skip to content

Commit

Permalink
Document GC_with_callee_saves_pushed better
Browse files Browse the repository at this point in the history
* mach_dep.c (GC_with_callee_saves_pushed): Add comment that it could
be called with or without GC lock, or even from a signal handler.
  • Loading branch information
ivmai committed Apr 11, 2022
1 parent b3af80d commit c53e2ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mach_dep.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@
/* Ensure that either registers are pushed, or callee-save registers */
/* are somewhere on the stack, and then call fn(arg, ctxt). */
/* ctxt is either a pointer to a ucontext_t we generated, or NULL. */
/* Could be called with or w/o the GC lock held; could be called from */
/* a signal handler as well. */
GC_ATTR_NO_SANITIZE_ADDR
GC_INNER void GC_with_callee_saves_pushed(void (*fn)(ptr_t, void *),
volatile ptr_t arg)
Expand Down

0 comments on commit c53e2ed

Please sign in to comment.