Index: vm/jitrino/src/jet/cg.cpp =================================================================== --- vm/jitrino/src/jet/cg.cpp (revision 540468) +++ vm/jitrino/src/jet/cg.cpp (working copy) @@ -34,8 +34,8 @@ #include #include #include +#include "port_threadunsafe.h" - /** * @file * @brief Common CodeGen's routines and datas. @@ -122,7 +122,9 @@ { assert(obj.jt() == jobj); if (obj.has(VA_NZ)) { + UNSAFE_REGION_START STATS_INC(Stats::npesEliminated,1); + UNSAFE_REGION_END if (is_set(DBG_TRACE_CG)) { dbg(";;>check.npe for %s - skipped\n", to_str(obj.as_opnd()).c_str());