Skip to content
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

Simplify how we track retained instances. #1414

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Simplify how we track retained instances. #1414

merged 1 commit into from
Jun 26, 2019

Conversation

pyricau
Copy link
Member

@pyricau pyricau commented Jun 26, 2019

  • Removed HeapDumpMemoryStore
  • Simplified the "retained" concept by introducing a retained time for each weak ref. Then for all hprof old and new we just look at KeyedWeakReference instances which became retained before the heap dump time. If the field is missing (older hprofs) we assume all instances are retained.
  • This simplified a bunch of edge cases and removed the need to reporting cleared and missing references.
  • Also removed AnalysisBenchmarkTest which was ignored and didn't work.
  • Added RefWatcher.retainedInstances that can be used for logging purposes.

Fixes #1366

* Removed HeapDumpMemoryStore
* Simplified the "retained" concept by introducing a retained time for each weak ref. Then for all hprof old and new we just look at KeyedWeakReference instances which became retained before the heap dump time. If the field is missing (older hprofs) we assume all instances are retained.
* This simplified a bunch of edge cases and removed the need to reporting cleared and missing references.
* Also removed AnalysisBenchmarkTest which was ignored and didn't work.
* Added RefWatcher.retainedInstances that can be used for logging purposes.

Fixes #1366
@pyricau pyricau added this to the 2.0 Next Release milestone Jun 26, 2019
@pyricau pyricau merged commit 86bf8a4 into master Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KotlinNullPointerException
1 participant