Permalink
Browse files

Use JIT_CheckedWriteBarrier instead of JIT_WriteBarrier even for regu…

…lar references in order to make sure that storing a reference to a field of a Class allocated on the stack doesn't go to the card table log (as it would write to some invalid memory)
  • Loading branch information...
xoofx committed Oct 7, 2015
1 parent 48a3840 commit e16f85f350ad43ee490d92cbbd658a148ab3e68a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/inc/jithelpers.h
@@ -189,7 +189,7 @@
JITHELPER1(CORINFO_HELP_CHECK_OBJ, JIT_CheckObj, CORINFO_HELP_SIG_REG_ONLY, MDIL_HELP_CHECK_OBJ)

// GC Write barrier support
DYNAMICJITHELPER1(CORINFO_HELP_ASSIGN_REF, JIT_WriteBarrier, CORINFO_HELP_SIG_NO_ALIGN_STUB, MDIL_HELP_ASSIGN_REF)
DYNAMICJITHELPER1(CORINFO_HELP_ASSIGN_REF, JIT_CheckedWriteBarrier, CORINFO_HELP_SIG_NO_ALIGN_STUB, MDIL_HELP_ASSIGN_REF)
DYNAMICJITHELPER1(CORINFO_HELP_CHECKED_ASSIGN_REF, JIT_CheckedWriteBarrier,CORINFO_HELP_SIG_NO_ALIGN_STUB, MDIL_HELP_CHECKED_ASSIGN_REF)
JITHELPER1(CORINFO_HELP_ASSIGN_REF_ENSURE_NONHEAP, JIT_WriteBarrierEnsureNonHeapTarget,CORINFO_HELP_SIG_REG_ONLY, MDIL_HELP_ASSIGN_REF_ENSURE_NONHEAP)

0 comments on commit e16f85f

Please sign in to comment.