Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Krzysztof Duleba <krzysan@skrzynka.pl>
Subject:  Re: heap_chunk_in_mb default value (Was Re: perl - segfault on "free   unused scalar")
Date:  Sat, 30 Jul 2005 07:47:59 +0200
Lines: 13
Message-ID: <dcf4ai$hql$1@sea.gmane.org>
References:  <23AA05B1B7171647BC38C5D761900EA40223C7E9@DF-SEADOG-MSG.exchange.corp.microsoft.com>  <20050729170958.GA872@efn.org> <Pine.GSO.4.61.0507291724080.19713@slinky.cs.nyu.edu>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <Pine.GSO.4.61.0507291724080.19713@slinky.cs.nyu.edu>
X-IsSubscribed: yes

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/

