| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
_PY_HASHTABLE_ENTRY_DATA => _Py_HASHTABLE_ENTRY_DATA
|
|
|
|
|
|
|
|
| |
platforms. Bug seen on 64-bit Linux when using "make profile-opt".
Only align the "frame_t" structure on 32-bit when Visual Studio is used. Before
the alignment to 32-bit was applied to the whole file any compiler supporting
"#pragma pack(4)" which includes GCC.
|
| |
|
|
|
|
|
| |
Commit to simplify the backport to python 2.7 and to make the code more
consistent.
|
|
|
|
|
|
|
|
|
|
| |
In Python 3.3, PyThread_set_key_value() did nothing if the key already exists
(if the current value is a non-NULL pointer).
When _PyGILState_NoteThreadState() is called twice on the same thread with a
different Python thread state, it still keeps the old Python thread state to
keep the old behaviour. Replacing the Python thread state with the new state
introduces new bugs: see issues #10915 and #15751.
|
|
|
|
| |
test_capi is failing and the fix is not trivial, I prefer to revert
|
|
|
|
|
|
|
|
| |
the function did nothing if the key already exists (if the current value is a
non-NULL pointer).
_testcapi.run_in_subinterp() now correctly sets the new Python thread state of
the current thread when a subinterpreter is created.
|
|
|
|
|
|
|
|
| |
between tracemalloc_remove_trace() and tracemalloc_add_trace() to reduce the
risk of race condition.
tracemalloc_add_trace() cannot fail anymore in tracemalloc_realloc() when
tracemalloc_realloc() resizes a memory block.
|
|
|
|
|
|
|
|
| |
PyGILState_Ensure()/PyGILState_Release() calls to the raw wrappers to simplify
the code.
Rename also tracemalloc_log_alloc/log_free() to
tracemalloc_add_trace/remove_trace().
|
|
|
|
|
|
| |
tracemalloc in objects destructor
Replace atexit handler with an harcoded C function _PyTraceMalloc_Fini().
|
|
|
|
|
|
|
|
| |
The limit is now 178,956,969 on 64 bit (it is greater on 32 bit because
structures are smaller).
Use int instead of Py_ssize_t to store the number of frames to have smaller
traceback_t objects.
|
|
|
|
| |
documentation. Use also the term "current" for the current size.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
comment
|
|
|
|
| |
name in their docstring. Patch written by Vajrasky Kok.
|
|
|
|
| |
Explain that unhandled error case is very unlikely
|
|
|
|
| |
for new allocations, but not when a memory block was already resized
|
| |
|
|
|
|
| |
tracemalloc.start() now has an option nframe parameter
|
|
|