[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/
From: |
David Chisnall |
Subject: |
Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/ |
Date: |
Sat, 20 Nov 2010 14:33:33 +0000 |
On 20 Nov 2010, at 14:25, Nicola Pero wrote:
> If boehm garbage collection is being used, I can't see a particular reason to
> manage C memory manually using malloc() and free();
> using objc_malloc() and objc_free() (btw, objc_free() is an empty operation
> in that case) provides garbage collection for C memory
> too, and makes sure that you don't crash because you forget that you have a
> reference to an garbage-collected Objective-C object
> in your C memory.
If using the Boehm GC, then you are using the GCC runtime. In this case,
NSAllocateCollectable() will be using objc_malloc(). If using the GNUstep or
Apple runtimes, objc_malloc() is not implemented, and we have no way of
distinguishing whether objc_malloc() should wrap NSAllocateCollectable() with
the scanned option, without the scanned option, or malloc().
David
-- Sent from my PDP-11
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, Fred Kiefer, 2010/11/20
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, David Chisnall, 2010/11/20
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, Nicola Pero, 2010/11/20
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, David Chisnall, 2010/11/20
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, Nicola Pero, 2010/11/20
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, Nicola Pero, 2010/11/20
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/,
David Chisnall <=
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, Eric Wasylishen, 2010/11/20
- Re: [Gnustep-cvs] r31629 - in /libs/back/trunk: ./ Source/cairo/ Source/gsc/ Source/win32/ Source/winlib/ Source/x11/, Nicola Pero, 2010/11/20