ERROR_DECL (error);
gpointer res;
+ if (mono_opt_experimental_gshared_mrgctx) {
+ g_assert_not_reached ();
+ return NULL;
+ }
+
res = mono_class_fill_runtime_generic_context (vtable, index, error);
if (!is_ok (error)) {
mono_error_set_pending_exception (error);
ERROR_DECL (error);
gpointer res;
+ if (mono_opt_experimental_gshared_mrgctx) {
+ g_assert_not_reached ();
+ return NULL;
+ }
+
res = mono_method_fill_runtime_generic_context (mrgctx, index, error);
if (!is_ok (error)) {
mono_error_set_pending_exception (error);
target = mini_method_get_rgctx (patch_info->data.method);
break;
case MONO_PATCH_INFO_RGCTX_SLOT_INDEX: {
- int slot = mini_get_rgctx_entry_slot (patch_info->data.rgctx_entry);
+ if (mono_opt_experimental_gshared_mrgctx) {
+ g_assert_not_reached ();
+ } else {
+ int slot = mini_get_rgctx_entry_slot (patch_info->data.rgctx_entry);
- target = GINT_TO_POINTER (MONO_RGCTX_SLOT_INDEX (slot));
+ target = GINT_TO_POINTER (MONO_RGCTX_SLOT_INDEX (slot));
+ }
break;
}
case MONO_PATCH_INFO_BB_OVF:
case MONO_PATCH_INFO_NONE:
break;
case MONO_PATCH_INFO_RGCTX_FETCH: {
- int slot = mini_get_rgctx_entry_slot (patch_info->data.rgctx_entry);
+ if (mono_opt_experimental_gshared_mrgctx) {
+ g_assert_not_reached ();
+ } else {
+ int slot = mini_get_rgctx_entry_slot (patch_info->data.rgctx_entry);
- target = mono_create_rgctx_lazy_fetch_trampoline (slot);
+ target = mono_create_rgctx_lazy_fetch_trampoline (slot);
+ }
break;
}
#ifdef MONO_ARCH_SOFT_DEBUG_SUPPORTED