Skip to content

[3.8] bpo-37729: gc: write stats at once (GH-15050) - #15076

Merged
methane merged 1 commit into
python:3.8from
miss-islington:backport-bf8162c-3.8
Aug 5, 2019
Merged

[3.8] bpo-37729: gc: write stats at once (GH-15050)#15076
methane merged 1 commit into
python:3.8from
miss-islington:backport-bf8162c-3.8

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

gc used several PySys_WriteStderr() calls to write stats.
It caused stats mixed up when stderr is shared by multiple
processes like this:

gc: collecting generation 2...
gc: objects in each generation: 0 0gc: collecting generation 2...
gc: objects in each generation: 0 0 126077 126077
gc: objects in permanent generation: 0

gc: objects in permanent generation: 0
gc: done, 112575 unreachable, 0 uncollectablegc: done, 112575 unreachable, 0 uncollectable, 0.2223s elapsed
, 0.2344s elapsed
(cherry picked from commit bf8162c)

Co-authored-by: Inada Naoki songofacandy@gmail.com

https://bugs.python.org/issue37729

gc used several PySys_WriteStderr() calls to write stats.
It caused stats mixed up when stderr is shared by multiple
processes like this:

  gc: collecting generation 2...
  gc: objects in each generation: 0 0gc: collecting generation 2...
  gc: objects in each generation: 0 0 126077 126077
  gc: objects in permanent generation: 0

  gc: objects in permanent generation: 0
  gc: done, 112575 unreachable, 0 uncollectablegc: done, 112575 unreachable, 0 uncollectable, 0.2223s elapsed
  , 0.2344s elapsed
(cherry picked from commit bf8162c)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@methane: Status check is done, and it's a success ✅ .

2 similar comments
@miss-islington

Copy link
Copy Markdown
Contributor Author

@methane: Status check is done, and it's a success ✅ .

@miss-islington

Copy link
Copy Markdown
Contributor Author

@methane: Status check is done, and it's a success ✅ .

@methane
methane merged commit e8ea348 into python:3.8 Aug 5, 2019
@miss-islington
miss-islington deleted the backport-bf8162c-3.8 branch August 5, 2019 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants