summaryrefslogtreecommitdiff
path: root/mach_dep.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-04-11 08:31:01 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-04-11 20:59:49 +0300
commitc53e2ed95352a85bc3255883e5e5287c31a4b02a (patch)
treef1eab2e6a0534cac760783f129435f55e07d4148 /mach_dep.c
parentb3af80d5f6f2f41ba57659f72d667b003a3274bd (diff)
downloadbdwgc-c53e2ed95352a85bc3255883e5e5287c31a4b02a.tar.gz
Document GC_with_callee_saves_pushed better
* 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.
Diffstat (limited to 'mach_dep.c')
-rw-r--r--mach_dep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mach_dep.c b/mach_dep.c
index ef2df2be..5131374c 100644
--- a/mach_dep.c
+++ b/mach_dep.c
@@ -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)