This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc16d26
)
PATCH: [perl #134126] -Dusemymalloc, -Dusethreads
author
Karl Williamson
<khw@cpan.org>
Wed, 22 May 2019 20:37:20 +0000
(14:37 -0600)
committer
Karl Williamson
<khw@cpan.org>
Fri, 24 May 2019 23:09:29 +0000
(17:09 -0600)
This was due to a missing declaration for thread context needed to
output a message.
malloc.c
patch
|
blob
|
blame
|
history
diff --git
a/malloc.c
b/malloc.c
index
ed392ee
..
0c80a08
100644
(file)
--- 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");