Closed davidchisnall closed 5 years ago
This appears to be caused by adding the method to the dealloc
method hidden class. Valgrind reports:
==77753== at 0x4C245B5: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck-amd64-freebsd.so)
==77753== by 0x4E4758C: class_addMethod (runtime.c:174)
==77753== by 0x4E55610: initHiddenClassForObject (associate.m:239)
==77753== by 0x4E54A94: referenceListForObject (associate.m:314)
==77753== by 0x4E552A5: objc_sync_enter (associate.m:395)
Fix also back-ported to the 1.9 branch.
Simple test case:
This should report a stable number for peak RSS, but instead it keeps increasing.