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
320dd504
Commit
320dd504
authored
Oct 10, 2019
by
Pablo Galindo
Committed by
GitHub
Oct 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38437: Activate GC_DEBUG when PY_DEBUG is set (GH-16707)
parent
72bbd2a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Misc/NEWS.d/next/Core and Builtins/2019-10-10-20-42-09.bpo-38437.z_0mZp.rst
...ore and Builtins/2019-10-10-20-42-09.bpo-38437.z_0mZp.rst
+2
-0
Modules/gcmodule.c
Modules/gcmodule.c
+5
-2
No files found.
Misc/NEWS.d/next/Core and Builtins/2019-10-10-20-42-09.bpo-38437.z_0mZp.rst
0 → 100644
View file @
320dd504
Activate the ``GC_DEBUG`` macro for debug builds of the interpreter (when
``Py_DEBUG`` is set). Patch by Pablo Galindo.
Modules/gcmodule.c
View file @
320dd504
...
@@ -37,7 +37,10 @@ module gc
...
@@ -37,7 +37,10 @@ module gc
[clinic start generated code]*/
[clinic start generated code]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=b5c9690ecc842d79]*/
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=b5c9690ecc842d79]*/
#define GC_DEBUG (0)
/* Enable more asserts */
#ifdef Py_DEBUG
# define GC_DEBUG
#endif
#define GC_NEXT _PyGCHead_NEXT
#define GC_NEXT _PyGCHead_NEXT
#define GC_PREV _PyGCHead_PREV
#define GC_PREV _PyGCHead_PREV
...
@@ -316,7 +319,7 @@ append_objects(PyObject *py_list, PyGC_Head *gc_list)
...
@@ -316,7 +319,7 @@ append_objects(PyObject *py_list, PyGC_Head *gc_list)
return
0
;
return
0
;
}
}
#if GC_DEBUG
#if
def
GC_DEBUG
// validate_list checks list consistency. And it works as document
// validate_list checks list consistency. And it works as document
// describing when expected_mask is set / unset.
// describing when expected_mask is set / unset.
static
void
static
void
...
...
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