Skip to content

Commit 206dbc7

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 79d5aff commit 206dbc7

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
@@ -1976,10 +1976,6 @@ mono_free_method (MonoMethod *method)
19761976
{
19771977
MONO_PROFILER_RAISE (method_free, (method));
19781978

1979-
/* FIXME: This hack will go away when the profiler will support freeing methods */
1980-
if (G_UNLIKELY (mono_profiler_installed ()))
1981-
return;
1982-
19831979
if (method->signature) {
19841980
/*
19851981
* FIXME: This causes crashes because the types inside signatures and

0 commit comments

Comments
 (0)