summaryrefslogtreecommitdiff
path: root/src/jit/gtlist.h
diff options
context:
space:
mode:
authorAndy Ayers <andya@microsoft.com>2019-02-12 08:22:47 -0800
committerGitHub <noreply@github.com>2019-02-12 08:22:47 -0800
commit6cd9e3ab6cae4aaf2a70fe1e59173b998932601d (patch)
tree3f2a3d950833174af1128ce040cf7fb899422659 /src/jit/gtlist.h
parent3397472200fc7b2b5db3dfd27a652a12831c37ee (diff)
downloadcoreclr-6cd9e3ab6cae4aaf2a70fe1e59173b998932601d.tar.gz
coreclr-6cd9e3ab6cae4aaf2a70fe1e59173b998932601d.tar.bz2
coreclr-6cd9e3ab6cae4aaf2a70fe1e59173b998932601d.zip
JIT: change how we block gc refs from callee saves for inline pinvokes (#22477)
Add a new marker instruction that we emit once we've enabled preepmtive gc in the inline pinvoke method prolog. Use that to kill off callee saves registers with GC references, instead of waiting until the call. This closes a window of vulnerability we see in GC stress where if a stress interrupt happens between the point at which we enable preeemptive GC and the point at which we make the call, we may report callee saves as GC live when they're actually dead. Closes #19211.
Diffstat (limited to 'src/jit/gtlist.h')
-rw-r--r--src/jit/gtlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/jit/gtlist.h b/src/jit/gtlist.h
index eb8b0a883a..dd23db486b 100644
--- a/src/jit/gtlist.h
+++ b/src/jit/gtlist.h
@@ -255,6 +255,8 @@ GTNODE(NO_OP , GenTree ,0,GTK_LEAF|GTK_NOVALUE) // nop!
GTNODE(START_NONGC , GenTree ,0,GTK_LEAF|GTK_NOVALUE) // starts a new instruction group that will be non-gc interruptible
+GTNODE(START_PREEMPTGC , GenTree ,0,GTK_LEAF|GTK_NOVALUE) // starts a new instruction group where preemptive GC is enabled
+
GTNODE(PROF_HOOK , GenTree ,0,GTK_LEAF|GTK_NOVALUE) // profiler Enter/Leave/TailCall hook
GTNODE(RETFILT , GenTreeOp ,0,GTK_UNOP|GTK_NOVALUE) // end filter with TYP_I_IMPL return value