Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / mini / seq-points.c
index 8af932a245558b85056f158f6729a71f5df00c0f..f9c0b1f00ececf4f302467b0bd3ea89c981a44b7 100644 (file)
@@ -230,7 +230,7 @@ mono_save_seq_point_info (MonoCompile *cfg)
                g_free (next);
 
        cfg->seq_point_info = mono_seq_point_info_new (array->len, TRUE, array->data, has_debug_data, &seq_info_size);
-       mono_jit_stats.allocated_seq_points_size += seq_info_size;
+       InterlockedAdd (&mono_jit_stats.allocated_seq_points_size, seq_info_size);
 
        g_byte_array_free (array, TRUE);