and they take up a lot of space since these wrappers are very common.
if (cfg->compile_llvm)
cfg->explicit_null_checks = TRUE;
+ if (cfg->explicit_null_checks && method->wrapper_type == MONO_WRAPPER_OTHER &&
+ (mono_marshal_get_wrapper_info (method)->subtype == WRAPPER_SUBTYPE_GSHAREDVT_IN_SIG ||
+ mono_marshal_get_wrapper_info (method)->subtype == WRAPPER_SUBTYPE_GSHAREDVT_OUT_SIG)) {
+ /* These wrappers contain loads/stores which can't fail */
+ cfg->explicit_null_checks = FALSE;
+ }
/*
if (!mono_debug_count ())