[jit] Cleanup the signature of the mono_arch_get_static_rgctx_trampoline () function...
[mono.git] / mono / mini / tramp-s390x.c
index c89f2038b2047c1013a92b712a7c5359310229ea..56f1839ae4218621055cf9dd7884439d6a9c1d0d 100644 (file)
@@ -553,20 +553,18 @@ mono_arch_create_rgctx_lazy_fetch_trampoline (guint32 slot, MonoTrampInfo **info
 /*                                                                  */
 /* Name        - mono_arch_get_static_rgctx_trampoline             */
 /*                                                                  */
-/* Function    - Create a trampoline which sets RGCTX_REG to MRGCTX*/
+/* Function    - Create a trampoline which sets RGCTX_REG to ARG       */
 /*               then jumps to ADDR.                               */
 /*                                                                  */
 /*------------------------------------------------------------------*/
 
 gpointer
-mono_arch_get_static_rgctx_trampoline (MonoMethod *m, 
-                                       MonoMethodRuntimeGenericContext *mrgctx, 
-                                       gpointer addr)
+mono_arch_get_static_rgctx_trampoline (gpointer arg,
+                                                                          gpointer addr)
 {
        guint8 *code, *start;
        gint32 displace;
        int buf_len;
-       char trampName[128];
 
        MonoDomain *domain = mono_domain_get ();
 
@@ -574,7 +572,7 @@ mono_arch_get_static_rgctx_trampoline (MonoMethod *m,
 
        start = code = mono_domain_code_reserve (domain, buf_len);
 
-       S390_SET  (code, MONO_ARCH_RGCTX_REG, mrgctx);
+       S390_SET  (code, MONO_ARCH_RGCTX_REG, arg);
        displace = ((uintptr_t) addr - (uintptr_t) code) / 2;
        s390_jg   (code, displace);
        g_assert ((code - start) < buf_len);
@@ -582,9 +580,7 @@ mono_arch_get_static_rgctx_trampoline (MonoMethod *m,
        mono_arch_flush_icache (start, code - start);
        mono_profiler_code_buffer_new (start, code - start, MONO_PROFILER_CODE_BUFFER_HELPER, NULL);
 
-       snprintf(trampName, sizeof(trampName), "%s_rgctx_trampoline", m->name);
-
-       mono_tramp_info_register (mono_tramp_info_create (trampName, start, code - start, NULL, NULL), domain);
+       mono_tramp_info_register (mono_tramp_info_create (NULL, start, code - start, NULL, NULL), domain);
 
        return(start);
 }