-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
gh-117122: Fix pystats after incremental GC changes #117123
Conversation
@@ -1421,7 +1420,7 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats) | |||
gc_set_old_space(gc, gcstate->visited_space); | |||
increment_size += expand_region_transitively_reachable(&increment, gc, gcstate); | |||
} | |||
GC_STAT_ADD(1, objects_queued, region_size); | |||
GC_STAT_ADD(1, objects_queued, increment_size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if this is correct, but region_size
doesn't exist.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this make sense anymore. Maybe just drop the "queued" stat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to conflict with #117120.
Once that's in, I'll review this properly.
@@ -1421,7 +1420,7 @@ gc_collect_increment(PyThreadState *tstate, struct gc_collection_stats *stats) | |||
gc_set_old_space(gc, gcstate->visited_space); | |||
increment_size += expand_region_transitively_reachable(&increment, gc, gcstate); | |||
} | |||
GC_STAT_ADD(1, objects_queued, region_size); | |||
GC_STAT_ADD(1, objects_queued, increment_size); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this make sense anymore. Maybe just drop the "queued" stat?
Actually, don't worry about the merge conflict. I can fix it in my PR |
I leave that to you, but this stat is new as of #116206 (it's just that it never compiled). |
This fixes the pystats build after #116206.