Global destruction sometimes makes linux COW useless #13297
Comments
From victor@vsespb.ruBelow example (with $N high enough - 100 in my case) works fine if I I think that's because Linux COW feature - after huge process forks, memory So I am wondering, maybe it's possible to free simple data structures ============= use strict; my $N=20; my $x={}; $x->{a} = [map { $_ } 1..10_000_000 ]; $SIG{USR1} = sub { print "exiting $$\n"; exit(0); }; my @pids; print "PRECC CTRL-C TO EXIT\n";
|
From @iabynOn Sat, Sep 21, 2013 at 02:42:18PM -0700, Victor Efimov wrote:
I can't see how this could be done. Every SV is reference counted, Note that this is happening earlier than global destruction. If you Your other option would be to use POSIX::_exit.
-- |
The RT System itself - Status changed from 'new' to 'open' |
From victor@vsespb.ruIndeed, if replace "my $x={};" with "our $x={};", problem seems to go On Mon Sep 30 13:01:38 2013, davem wrote:
|
@iabyn - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#119937 (status was 'rejected')
Searchable as RT119937$
The text was updated successfully, but these errors were encountered: