This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix broken PERL_MEM_LOG under threads
authorKarl Williamson <khw@cpan.org>
Sun, 6 Dec 2020 22:01:14 +0000 (15:01 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 20 Dec 2020 05:00:30 +0000 (22:00 -0700)
commit03694582f8c247d4a1cc8a7bb8348af0173944d7
tree663345306aa5475ca4758b0db7a5f026c410c865
parent35bcf7ffa2bfeab79ab7b4eb0d35f462775b54d2
Fix broken PERL_MEM_LOG under threads

This fixes GH #18341

There are problems with getenv() on threaded perls wchich can lead to
incorrect results when compiled with PERL_MEM_LOG.

Commit 0b83dfe6dd9b0bda197566adec923f16b9a693cd fixed this for some
platforms, but as Tony Cook, pointed out there may be
standards-compliant platforms that that didn't fix.

The detailed comments outline the issues and (complicated) full solution.
embedvar.h
inline.h
intrpvar.h
makedef.pl
sv.c
util.c