diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-03-09 18:49:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-09 18:49:52 (GMT) |
commit | eebaa9bfc593d5a46b293c1abd929fbfbfd28199 (patch) | |
tree | 9ba0bbaba8116eb71d0b80f11b586fe063aadbe5 /Modules | |
parent | 6d0ee60740f2862a878f009671b1aaa75aeb0c2a (diff) | |
download | cpython-eebaa9bfc593d5a46b293c1abd929fbfbfd28199.zip cpython-eebaa9bfc593d5a46b293c1abd929fbfbfd28199.tar.gz cpython-eebaa9bfc593d5a46b293c1abd929fbfbfd28199.tar.bz2 |
bpo-38249: Expand Py_UNREACHABLE() to __builtin_unreachable() in the release mode. (GH-16329)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_tracemalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_tracemalloc.c b/Modules/_tracemalloc.c index ddf6ef4..74c09e4 100644 --- a/Modules/_tracemalloc.c +++ b/Modules/_tracemalloc.c @@ -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(); } |