Skip to content

Commit 29044e0

Browse files
committed
Remove hack from mono_free_method. Bypassing cleanup here was causing corruption to persist in mscorlib's method hashtable when a rehash occurred. Unity profiler may need changes to avoid possessing dangling pointers. Same with the mono profiler (as the comment indicates)
1 parent 231cf40 commit 29044e0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mono/metadata/loader.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,10 +1391,6 @@ mono_free_method (MonoMethod *method)
13911391

13921392
MONO_PROFILER_RAISE (method_free, (method));
13931393

1394-
/* FIXME: This hack will go away when the profiler will support freeing methods */
1395-
if (G_UNLIKELY (mono_profiler_installed ()))
1396-
return;
1397-
13981394
if (method->signature) {
13991395
/*
14001396
* FIXME: This causes crashes because the types inside signatures and

0 commit comments

Comments
 (0)