This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change #29424 may well be correct in itself, but currently doesn't
authorSteve Hay <SteveHay@planit.com>
Mon, 4 Dec 2006 14:31:08 +0000 (14:31 +0000)
committerSteve Hay <SteveHay@planit.com>
Mon, 4 Dec 2006 14:31:08 +0000 (14:31 +0000)
commitc254be07ec6b40dded57c0e5907b1bdfaf3d828d
tree7e6a88b958c428fda7e4fe234ae2453ec0c28e23
parentb62d2d15211eac1c5b0041f838bdf37abe63e1ac
Change #29424 may well be correct in itself, but currently doesn't
work when perl is built with PERL_IMPLICIT_SYS because PERLIO_TERM
uses PerlMemShared_free() which, in that case, involves the perlhost
that has already been freed itself by perl_free(), which is called
before PERL_SYS_TERM().

The order of perl_destruct(), perl_free(), PERL_SYS_TERM() cannot
be changed (it is advertised in perlembed for a start), so just
revert #29424 and the appropriate parts of #29442 for now.

Perhaps PL_perlio_fd_refcnt needs allocating differently, or else
the perlhost needs freeing later (after PerlIO)?

p4raw-id: //depot/perl@29451
win32/perllib.c
win32/win32.c
win32/wince.c