Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
745dc65b
Commit
745dc65b
authored
Feb 21, 2018
by
Eddie Elizondo
Committed by
Benjamin Peterson
Feb 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes bpo-32898: Fix debug build crash with COUNT_ALLOCS (GH-5800)
parent
c84cf6c0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
3 deletions
+6
-3
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS.d/next/Build/2018-02-21-12-46-00.bpo-32898.M15bZh.rst
...EWS.d/next/Build/2018-02-21-12-46-00.bpo-32898.M15bZh.rst
+1
-0
Objects/listobject.c
Objects/listobject.c
+1
-1
Objects/object.c
Objects/object.c
+2
-1
Objects/tupleobject.c
Objects/tupleobject.c
+1
-1
No files found.
Misc/ACKS
View file @
745dc65b
...
...
@@ -425,6 +425,7 @@ Tal Einat
Eric Eisner
Andrew Eland
Julien Élie
Eduardo Elizondo
Lance Ellinghaus
Daniel Ellis
Phil Elson
...
...
Misc/NEWS.d/next/Build/2018-02-21-12-46-00.bpo-32898.M15bZh.rst
0 → 100644
View file @
745dc65b
Fix the python debug build when using COUNT_ALLOCS.
Objects/listobject.c
View file @
745dc65b
...
...
@@ -86,7 +86,7 @@ static void
show_alloc
(
void
)
{
PyInterpreterState
*
interp
=
PyThreadState_GET
()
->
interp
;
if
(
!
inter
->
core_config
.
show_alloc_count
)
{
if
(
!
inter
p
->
core_config
.
show_alloc_count
)
{
return
;
}
...
...
Objects/object.c
View file @
745dc65b
...
...
@@ -97,10 +97,11 @@ void
dump_counts
(
FILE
*
f
)
{
PyInterpreterState
*
interp
=
PyThreadState_GET
()
->
interp
;
if
(
!
inter
->
core_config
.
show_alloc_count
)
{
if
(
!
inter
p
->
core_config
.
show_alloc_count
)
{
return
;
}
PyTypeObject
*
tp
;
for
(
tp
=
type_list
;
tp
;
tp
=
tp
->
tp_next
)
fprintf
(
f
,
"%s alloc'd: %"
PY_FORMAT_SIZE_T
"d, "
"freed: %"
PY_FORMAT_SIZE_T
"d, "
...
...
Objects/tupleobject.c
View file @
745dc65b
...
...
@@ -45,7 +45,7 @@ static void
show_track
(
void
)
{
PyInterpreterState
*
interp
=
PyThreadState_GET
()
->
interp
;
if
(
!
inter
->
core_config
.
show_alloc_count
)
{
if
(
!
inter
p
->
core_config
.
show_alloc_count
)
{
return
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment