Index: vm/vmcore/src/jit/jit_runtime_support.cpp =================================================================== --- vm/vmcore/src/jit/jit_runtime_support.cpp (revision 540468) +++ vm/vmcore/src/jit/jit_runtime_support.cpp (working copy) @@ -63,6 +63,7 @@ #include "dump.h" #include "vm_stats.h" +#include "port_threadunsafe.h" // macro that gets the offset of a certain field within a struct or class type #define OFFSET(Struct, Field) \ @@ -364,6 +365,7 @@ // Checkcast stats update static void rth_update_checkcast_stats(ManagedObject* o, Class* super) { + UNSAFE_REGION_START VM_Statistics::get_vm_stats().num_checkcast ++; if (o == (ManagedObject*)VM_Global_State::loader_env->managed_null) { VM_Statistics::get_vm_stats().num_checkcast_null++; @@ -374,6 +376,7 @@ VM_Statistics::get_vm_stats().num_checkcast_fast_decision ++; rth_type_test_update_stats(o->vt(), super); } + UNSAFE_REGION_END } // Instanceof stats update