Skip to content

Commit 1aa74b9

Browse files
committed
Add comment
1 parent 2172e09 commit 1aa74b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mono/mini/method-to-ir.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10742,7 +10742,9 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
1074210742
store->flags |= ins_flag;
1074310743
if (cfg->gen_write_barriers && cfg->method->wrapper_type != MONO_WRAPPER_WRITE_BARRIER &&
1074410744
mini_type_is_reference (ftype)) {
10745-
/* insert call to write barrier */
10745+
/* insert call to write barrier. This is not needed by sgen, as it does not seem
10746+
to need write barriers for uncollectable objects (like the vtables storing static
10747+
fields), but it is needed for incremental boehm. */
1074610748
mini_emit_write_barrier (cfg, store, ins);
1074710749
}
1074810750
} else {

0 commit comments

Comments
 (0)