more GC improvements

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28220 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-04-15 08:03:19 +00:00
parent 4fa65f0c82
commit cfb566ed22
10 changed files with 415 additions and 118 deletions

View file

@ -501,7 +501,7 @@ GSPrivateUnloadModule(FILE *errorStream,
void (*unloadCallback)(Class, struct objc_category *)) GS_ATTRIB_PRIVATE;
/* Memory to use to put executabel code in.
/* Memory to use to put executable code in.
*/
@interface GSCodeBuffer : NSObject
{
@ -514,6 +514,15 @@ GSPrivateUnloadModule(FILE *errorStream,
- (void) protect;
@end
/* Function to safely change the class of an object by 'isa' swizzling
* wile maintaining allocation accounting and finalization in a GC world.
*/
void
GSPrivateSwizzle(id o, Class c) GS_ATTRIB_PRIVATE;
BOOL
GSPrivateIsCollectable(const void *ptr) GS_ATTRIB_PRIVATE;
NSZone*
GSAtomicMallocZone (void);