Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mono/mini/tramp-ppc.c')
-rw-r--r--mono/mini/tramp-ppc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mono/mini/tramp-ppc.c b/mono/mini/tramp-ppc.c
index 42d60a9bcf9..b178dd62601 100644
--- a/mono/mini/tramp-ppc.c
+++ b/mono/mini/tramp-ppc.c
@@ -85,7 +85,9 @@ ppc_magic_trampoline (MonoMethod *method, guint32 *code, char *sp)
gpointer addr;
int reg;
+ EnterCriticalSection(metadata_section);
addr = mono_compile_method(method);
+ LeaveCriticalSection(metadata_section);
g_assert(addr);
/* Locate the address of the method-specific trampoline. The call using
@@ -494,7 +496,9 @@ x86_magic_trampoline (int eax, int ecx, int edx, int esi, int edi,
char *o;
gpointer addr;
+ EnterCriticalSection (metadata_section);
addr = mono_compile_method (m);
+ LeaveCriticalSection (metadata_section);
g_assert (addr);
/* go to the start of the call instruction