Skip to content

Commit

Permalink
Use mono_gc_memmove instead of memcpy to ensure store atomicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
kumpera committed Apr 16, 2012
1 parent 0dd1b9f commit 9e83a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/debugger-agent.c
Expand Up @@ -5565,7 +5565,7 @@ set_var (MonoType *t, MonoDebugVarInfo *var, MonoContext *ctx, MonoDomain *domai
}

// FIXME: Write barriers
memcpy (addr, val, size);
mono_gc_memmove (addr, val, size);
break;
case MONO_DEBUG_VAR_ADDRESS_MODE_DEAD:
NOT_IMPLEMENTED;
Expand Down

0 comments on commit 9e83a34

Please sign in to comment.