mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release mode. (GH-16329)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
6d0ee60740
commit
eebaa9bfc5
8 changed files with 39 additions and 15 deletions
|
|
@ -712,7 +712,7 @@ tracemalloc_realloc(void *ctx, void *ptr, size_t new_size)
|
|||
|
||||
The GIL and the table lock ensures that only one thread is
|
||||
allocating memory. */
|
||||
Py_UNREACHABLE();
|
||||
Py_FatalError("tracemalloc_realloc() failed to allocate a trace");
|
||||
}
|
||||
TABLES_UNLOCK();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue