summaryrefslogtreecommitdiff
path: root/malloc.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-05-22 14:37:20 -0600
committerKarl Williamson <khw@cpan.org>2019-05-24 17:09:29 -0600
commit9629b6dc1d6296e0d3a6a5dbfd0f672b4b2021ca (patch)
tree301815d2edf72db0ed60e5a7e4472b422a09cdcb /malloc.c
parentcc16d262eb72677cdda2aa9395e943818b85ba38 (diff)
downloadperl-9629b6dc1d6296e0d3a6a5dbfd0f672b4b2021ca.tar.gz
PATCH: [perl #134126] -Dusemymalloc, -Dusethreads
This was due to a missing declaration for thread context needed to output a message.
Diffstat (limited to 'malloc.c')
-rw-r--r--malloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc.c b/malloc.c
index ed392ee5ba..0c80a0856f 100644
--- a/malloc.c
+++ b/malloc.c
@@ -1239,6 +1239,7 @@ Perl_malloc(size_t nbytes)
* malloc so that pointer subtraction in the same structure is always
* well defined */
if (nbytes > PTRDIFF_MAX) {
+ dTHX;
MYMALLOC_WRITE2STDERR("Memory requests are limited to PTRDIFF_MAX"
" bytes to prevent possible undefined"
" behavior");