delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/23/10:51:30

X-Spam-Check-By: sourceware.org
Message-ID: <45B62E0B.4080500@sh.cvut.cz>
Date: Tue, 23 Jan 2007 16:47:23 +0100
From: =?ISO-8859-1?Q?V=E1clav_Haisman?= <v DOT haisman AT sh DOT cvut DOT cz>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Perl bug?
References: <20070122181727 DOT GC27843 AT calimero DOT vinschen DOT de> <1552 DOT 67 DOT 40 DOT 28 DOT 188 DOT 1169493973 DOT squirrel AT 67 DOT 40 DOT 28 DOT 188> <20070122202137 DOT GC20665 AT calimero DOT vinschen DOT de> <45B540FF DOT 6060101 AT x-ray DOT at> <20070123083753 DOT GE27843 AT calimero DOT vinschen DOT de>
In-Reply-To: <20070123083753.GE27843@calimero.vinschen.de>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enigEC99F5AA5C4251D177831817
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Corinna Vinschen wrote:
>=20
> Hello?  Am I in the wrong movie?
>=20
> This is no serious application.  I'm demonstrating a problem.
>=20
> Every allocation uses twice as much memory as necessary.  This is no
> problem as long as the process doesn't eat up the virtual memory for
> a process.  As soon as no memory is available, I'd expect the GC kicking
> in, but it doesn't.  Half of the VM is used up for temporary memory
> and never free'd, not even when the VM is used up.  This shows a memory
> leak.  The GC apparently doesn't know about this temporary memory
Perl doesn't have GC like Java. It uses just reference counting, nothing
else, IIRC. There must be some reference that gets freed only at the end
of block. If you think about it makes sense a little bit when we are
talking about lexical variables.

> anymore, otherwise it would free it and try to reuse it.  It doesn't.
> Use strace and you'll see.  That's not hard to understand, is it?
>=20
>=20
> Corinna
>=20
If I were you I would report it as a bug to their bug tracker.

--
Vaclav Haisman


--------------enigEC99F5AA5C4251D177831817
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBRbYuGENOZDESBK8FAQJ0eAf/UCmjaAJjkFdW1Vx3T63ppctxRqMD4sFL
dXKeFeWeMz0W1wT/pib7rQyrPwppK4Wctj/4x7ColVttVe2MDT54bhfrwXDq8qHX
G+1XAp+9ezBASqyYdq3KsV7LMXLzduEGNKp5fZacorO5p0RWJrSca7uVx9/VJMdh
ce9EaRDPKS86mJjqT8dpHR17KXicKnPcLTd0NWdaXH8bk1p87vvwvcLslTeqlQ6G
JSJaZtKruySvS4UWxxNcoyn/ZsZsiV7YHQpoc6WSWoanetGCOq11pqKpqOIiiCvG
NAUPjP2UZlUrqIuTE1Qnqu4p249jNZZhDOvsXkdNG2VPNTPBGm127g==
=iGa+
-----END PGP SIGNATURE-----

--------------enigEC99F5AA5C4251D177831817--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019