-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutex Memory Leak on 4.3.68 #1182
Comments
These objects should cleaned up by the garbage collector. Previously, the Deque and Semaphore were allocated internally, but now they are allocated using "new" which means they will show up on tools such as this. To get a correct reading, you should ensure that all thread pools are closed, and a full GC is run. |
As far as I know, xcode marks it as a leak if the object exists but has no reference left. I think it's a memory leak. https://stackoverflow.com/a/2320004 I should also add that this problem only occurs in the mutex, there is no other problem in another instances. |
It is still possible that the GC can find the object - it's just obfuscated from the tooling - because it is in the middle of a GC slab. This is why a final collect is useful. I don't think the behaviour has changed here. The object is not cleaned up, but I don't think it was before - you could just not see this because it did not use "new" to allocate the object. |
In 4.3.2 there is no memory leak while in 4.3.68 there is memory leak.
I looked at both versions on xcode memory leak instrument.
The text was updated successfully, but these errors were encountered: