#include <mono/metadata/exception-internals.h>
#include <mono/metadata/threads-types.h>
#include <mono/metadata/reflection-internals.h>
+#include <mono/utils/unlocked.h>
#ifdef ENABLE_LLVM
#include "mini-llvm-cpp.h"
gpointer addr;
MonoGenericContext *context = mono_method_get_context (method);
- mono_jit_stats.generic_virtual_invocations++;
+ UnlockedIncrement (&mono_jit_stats.generic_virtual_invocations);
if (obj == NULL) {
mono_set_pending_exception (mono_get_exception_null_reference ());
void
mono_throw_method_access (MonoMethod *caller, MonoMethod *callee)
{
- char *caller_name = mono_method_full_name (caller, 1);
- char *callee_name = mono_method_full_name (callee, 1);
+ char *caller_name = mono_method_get_reflection_name (caller);
+ char *callee_name = mono_method_get_reflection_name (callee);
MonoError error;
error_init (&error);