This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]