This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add CLONEf_KEEP_PTR_TABLE to win fork emulation.
authorDavid Mitchell <davem@iabyn.com>
Wed, 5 Aug 2009 13:20:29 +0000 (14:20 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 5 Aug 2009 13:20:29 +0000 (14:20 +0100)
commit240bfeb992996de28603a7f9e3ee34ecc6e3f286
tree82c64d89dd4f9f9bc5ee8a78bef1b38bba9da04a
parent46a76da79aa70ae5c77ffe23d8c6e303c7c67ce2
add CLONEf_KEEP_PTR_TABLE to win fork emulation.
This keeps the ptr-table table around after the thread has been created.
This has been on for user threads for a while now, but not for
Windows forks. Turns out that Variable::Magic relies on the table still
being there, so crashes under windows forks.  This increases memory usage
per fork, but stops things crashing. Sigh.
[perl #66158]
win32/perlhost.h