-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Significant increase in maximum heap size in GCBenchmark #51601
Comments
I didn't check RSS, so could be an accounting bug somewhere. |
I think it might the accounting change, where we now need to keep a global counter in sync. Though I need to check |
Measured again on Linux machine. On 1.9 peak RSS is around 400MB-500MB. On master it goes beyond 70GB and eventually fails at Serialization:
|
A few observations.
Note the collected stat is wrong, since the GC aware free is happening from a finalizer. |
I found the issue, and it's quite fun. What happens here is that the GC thinks nothing is getting freed during the GC. Because the heap barely changes size, except that the heap goes down a lot when running finalizers, so for example, if the heap size before the GC was 4.5 and after sweep it's 4, the heuristics go and assume that to devise a new target. Except that running finalizers brings the heap down to 0.2, but the heuristics have no idea. |
Two questions:
|
This does affect 1.10, and I have a tentative solution. |
Removing this issue from the 1.10 milestone since it's fixed by #51661. The issue persists on master. |
Fixed by #51611 (comment) |
CC: @gbaraldi
The text was updated successfully, but these errors were encountered: