heap_chunk_in_mb default value (Was Re: perl - segfault on "free unused scalar")

Krzysztof Duleba krzysan@skrzynka.pl
Sat Jul 30 06:13:00 GMT 2005


Igor Pechtchanski wrote:

>>However code like the above does end up using twice the space; it's
>>allocated once to store the result of the x operation and again when
>>it's copied to $a.
> 
> D'oh!  I forgot that this was an assignment, not an initialization.  I
> feel properly chastised. :-)

How come the assignment here is not an initialization? I suppose it is.
$ perl -e '$a="a"x(200*1024*1024); sleep 9'

Krzysztof Duleba


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list