From d50c836721f22df74a45185d51d0b9d37c370e33 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sat, 8 Feb 2014 11:29:35 +0100 Subject: [PATCH] [jit] Fix a regression introduced by b3f36681c72a6900cd5e9df9b593d555b351669f. --- mono/mini/method-to-ir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mono/mini/method-to-ir.c b/mono/mini/method-to-ir.c index b53baa6ce14..10d89b8e57a 100644 --- a/mono/mini/method-to-ir.c +++ b/mono/mini/method-to-ir.c @@ -2916,7 +2916,8 @@ emit_write_barrier (MonoCompile *cfg, MonoInst *ptr, MonoInst *value) has_card_table_wb = TRUE; #endif #ifdef MONO_ARCH_HAVE_CARD_TABLE_WBARRIER - has_card_table_wb = TRUE; + if (!cfg->compile_aot) + has_card_table_wb = TRUE; #endif if (has_card_table_wb && card_table && nursery_shift_bits > 0 && !COMPILE_LLVM (cfg)) { -- 2.25.1