In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/240bfeb992996de28603a7f9e3ee34ecc6e3f286?hp=d7eb1120ad049806b32041fcc301bf95f95423bc>

- Log -----------------------------------------------------------------
commit 240bfeb992996de28603a7f9e3ee34ecc6e3f286
Author: David Mitchell <[email protected]>
Date:   Wed Aug 5 14:20:29 2009 +0100

    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]

M       win32/perlhost.h

commit 46a76da79aa70ae5c77ffe23d8c6e303c7c67ce2
Author: David Mitchell <[email protected]>
Date:   Wed Aug 5 14:18:37 2009 +0100

    win32/perlhost.h: use symbolic constant
    CLONEf_COPY_STACKS rather than 1

M       win32/perlhost.h
-----------------------------------------------------------------------

Summary of changes:
 win32/perlhost.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/win32/perlhost.h b/win32/perlhost.h
index 6e3fcd2..c02d409 100644
--- a/win32/perlhost.h
+++ b/win32/perlhost.h
@@ -1835,7 +1835,9 @@ PerlProcFork(struct IPerlProc* piPerl)
        return -1;
     }
     h = new CPerlHost(*(CPerlHost*)w32_internal_host);
-    PerlInterpreter *new_perl = perl_clone_using((PerlInterpreter*)aTHX, 1,
+    PerlInterpreter *new_perl = perl_clone_using((PerlInterpreter*)aTHX,
+                                                  CLONEf_COPY_STACKS
+                                                | CLONEf_KEEP_PTR_TABLE,
                                                 h->m_pHostperlMem,
                                                 h->m_pHostperlMemShared,
                                                 h->m_pHostperlMemParse,

--
Perl5 Master Repository

Reply via email to