delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/20/11:16:27

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Thu, 20 Aug 2009 11:16:03 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: find(1) memory leak in cygheap
Message-ID: <20090820151603.GB13716@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <c8a3efee0908190447l11062bf1waba8ca9df5581468 AT mail DOT gmail DOT com> <20090819140322 DOT GB8713 AT ednor DOT casa DOT cgf DOT cx> <c8a3efee0908190804i4130ecbfp7561934ab2272da8 AT mail DOT gmail DOT com> <c8a3efee0908192309k4e207b4fs662d2c2baae8c0a2 AT mail DOT gmail DOT com> <20090820083926 DOT GJ32408 AT calimero DOT vinschen DOT de> <c8a3efee0908200323v6ffc605cuc74b45533bf99048 AT mail DOT gmail DOT com> <4A8D396D DOT 8000209 AT gmail DOT com> <4A8D3EFD DOT 9080704 AT sbcglobal DOT net> <4A8D6558 DOT 8080404 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <4A8D6558.8080404@gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Thu, Aug 20, 2009 at 04:01:44PM +0100, Dave Korn wrote:
>Greg Chicares wrote:
>> On 2009-08-20 11:54Z, Dave Korn wrote:
>>> [...]  (Hmm, now there's an idea.  GCC needs an
>>> __attribute__ that you can tag onto a class to say it must be a POD-type and
>>> get a compiler error if anyone ever adds a virtual function or anything else
>>> that would make the layout non-POD.)
>> 
>> http://groups.google.com/group/comp.lang.c++.moderated/msg/71ae531aa27e70c5
>> | GCC 4.3.1 provides the __is_pod extension
>> ...
>> | tr1/type_traits is implemented using __is_pod
>> 
>> Combining that with static_assert, I suppose you could write
>> this restriction in standard C++ (TR1) instead of creating a
>> new __attribute__.
>
>  Ooh, nice trick.  Thanks.

We should probably consider removing the memcpy's from the path_conv and
fhandler_base classes for 1.7.1.  I started to do that this morning but
realized that this wasn't something for 1.7.0.

cgf

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

- Raw text -


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