richard
65b8d0067c
More GC tidyups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4953 72102866-910b-0410-8b05-ffd578937521
1999-09-28 11:10:34 +00:00
richard
a2737c2cf5
Ivar underscore prefixes added and some tidying done.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4902 72102866-910b-0410-8b05-ffd578937521
1999-09-16 07:21:34 +00:00
fedor
302c691e79
Merge from dawn
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4853 72102866-910b-0410-8b05-ffd578937521
1999-09-09 02:56:20 +00:00
richard
5f24d0ac3d
More optimisation - remove objc overhead in adding object to pool.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4216 72102866-910b-0410-8b05-ffd578937521
1999-05-06 20:22:16 +00:00
richard
d54ee72b01
Performance improvements.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4215 72102866-910b-0410-8b05-ffd578937521
1999-05-06 19:37:45 +00:00
richard
2f0818bebd
Optimisation, bug fixes and tidying up.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4107 72102866-910b-0410-8b05-ffd578937521
1999-04-21 20:16:25 +00:00
richard
743ffba39c
Optimisation mostly
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4098 72102866-910b-0410-8b05-ffd578937521
1999-04-19 14:29:52 +00:00
fedor
3d949ca12d
Makefile changes to compile thinkg in place.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3496 72102866-910b-0410-8b05-ffd578937521
1998-12-20 21:27:47 +00:00
richard
aed4277831
Optimize NSAutoreleasePool +new
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3275 72102866-910b-0410-8b05-ffd578937521
1998-11-20 13:44:59 +00:00
richard
a3751eb7bf
Replace assert with NSAssert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3248 72102866-910b-0410-8b05-ffd578937521
1998-11-19 21:26:27 +00:00
richard
1f800ffbe0
Log warning if an object is autoreleased without a pool.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3001 72102866-910b-0410-8b05-ffd578937521
1998-10-01 03:05:27 +00:00
netc
5c9a97f30d
Add global Foundation header file.
...
Fix some missed memory allocation function usage.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2682 72102866-910b-0410-8b05-ffd578937521
1998-01-03 21:27:44 +00:00
netc
5f7871270a
Remove dependency upon config.h by headers files and include
...
directly in source files because the config.h file is system
dependent, used just for compiling the source, and should
not be installed.
Some minor bug fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2619 72102866-910b-0410-8b05-ffd578937521
1997-11-06 00:51:23 +00:00
mccallum
9cd3003d2c
Changes by wacko@power1.snu.ac.kr (Yoo C. Chung). See ChangeLog Feb 4
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2205 72102866-910b-0410-8b05-ffd578937521
1997-03-03 19:56:37 +00:00
mccallum
6aa057e1d8
Changes by wacko@power1.snu.ac.kr (Yoo C. Chung). See ChangeLog
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2201 72102866-910b-0410-8b05-ffd578937521
1997-03-03 19:43:25 +00:00
mccallum
de748f5045
Don't include objc-malloc.h.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1729 72102866-910b-0410-8b05-ffd578937521
1996-09-07 20:17:46 +00:00
mccallum
af85fabbe0
([NSAutoreleasePool -init]): In accordance with Objective C runtime
...
change, use objc_malloc as a function, not a function pointer.
([NSAutoreleasePool -addObject:]): Likewise.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1718 72102866-910b-0410-8b05-ffd578937521
1996-09-07 19:57:33 +00:00
mccallum
fe624212e5
Changes made in Rochester. See ChangeLog
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1650 72102866-910b-0410-8b05-ffd578937521
1996-07-15 18:41:44 +00:00
mccallum
b508d29be2
Don't include <gnustep/base/Array.h>.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1596 72102866-910b-0410-8b05-ffd578937521
1996-05-31 14:23:02 +00:00
mccallum
49d43a44aa
Change "Gnustep" to "GNUstep"
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1521 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:56:10 +00:00
mccallum
75421a4b21
Comment changes, and preparation for thread-safety.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1516 72102866-910b-0410-8b05-ffd578937521
1996-05-12 00:38:07 +00:00
mccallum
3228ed0477
Change R. Andrew McCallum to post-marriage name: Andrew Kachites McCallum
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1456 72102866-910b-0410-8b05-ffd578937521
1996-04-17 20:17:45 +00:00
mccallum
dbe4613ced
Rename in comments from GNU Objective C Class Library to Gnustep Base Library.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1451 72102866-910b-0410-8b05-ffd578937521
1996-04-17 19:55:26 +00:00
mccallum
89d67bb808
Fix typo; it is preface.h, not prefix.h.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1420 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:34:35 +00:00
mccallum
d4b12b4053
Change all include objects/*.h to include gnustep/base/*.h.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1419 72102866-910b-0410-8b05-ffd578937521
1996-04-17 15:23:00 +00:00
mccallum
7df9cb9436
([NSAutoreleasePool -dealloc]): When unintalling ourselves at the
...
current pool, and setting our parent to be the current pool, be sure
to set our parent's _CHILD ivar to nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1340 72102866-910b-0410-8b05-ffd578937521
1996-04-10 16:40:25 +00:00
mccallum
b5e1608e0c
Make NSAutoreleasePools co-exist with exceptions, safely and without
...
leaks. Also improve efficiency by using a linked list of arrays
instead of realloc when more space is needed, and by using a cache of
pools that helps avoid the allocation/deallocation of pools.
(push_pool_to_cache): New function.
(pop_pool_from_cache): New function.
([NSAutoreleasePool +initialize]): New method.
([NSAutoreleasePool +allocWithZone:]): New method.
([NSAutoreleasePool -init]): Method overhauled to initialize new ivar
for handling exceptions, _child; also use pool cache.
(total_autoreleased_objects_count): New static variable.
(BEGINNING_POOL_SIZE): Macro renamed from DEFAULT_SIZE.
(autorelease_pool_cache, autorelease_pool_cache_size,
autorelease_pool_cache_count): New static variables.
([NSAutoreleasePool -_setChildPool:]): New method, handling stack and
dealing with exceptions.
([NSAutoreleasePool -addObject:]): Deal with linked list of arrays.
([NSAutoreleasePool -dealloc]): Deal with exceptions by releasing
child pools. Place self into the pool cache instead of deallocating.
([NSAutoreleasePool +resetTotalAutoreleasedObjects]): New method.
([NSAutoreleasePool +totalAutoreleasedObjects]): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1311 72102866-910b-0410-8b05-ffd578937521
1996-03-30 22:39:48 +00:00
mccallum
f491e64f1b
Fix typos.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1276 72102866-910b-0410-8b05-ffd578937521
1996-03-26 20:59:42 +00:00
mccallum
6c5e0d54bb
Use NSException instead of sending -error: in all methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1273 72102866-910b-0410-8b05-ffd578937521
1996-03-26 19:35:47 +00:00
mccallum
c8e7da6b14
([NSAutoreleasePool -dealloc]): Set CURRENT_POOL to PARENT, even if
...
PARENT is nil. This is correct behavior. Old behavior could cause
infinite loops in the PARENT pointers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1197 72102866-910b-0410-8b05-ffd578937521
1996-03-18 21:43:14 +00:00
mccallum
fe4eb5b2ab
([NSAutoreleasePool -parentAutoreleasePool]): Remove inclusion of
...
eltfuncs.h and collhash.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1164 72102866-910b-0410-8b05-ffd578937521
1996-03-18 13:54:29 +00:00
mccallum
8fa067f75b
([NSAutoreleasePool -dealloc]): Removed question comment.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@572 72102866-910b-0410-8b05-ffd578937521
1995-08-23 15:07:17 +00:00
mccallum
e20a78619b
([NSAutoreleasePool -dealloc]): Use object_get_class() instead of
...
->isa.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@533 72102866-910b-0410-8b05-ffd578937521
1995-08-08 15:38:02 +00:00
mccallum
3c5d666112
([NSAutoreleasePool -addObject:]):
...
Remove double_release checking. Increment released_count after
setting released array.
([NSAutoreleasePool -dealloc]): Catch release errors.
([NSAutoreleasePool -enableDoubleReleaseCheck:]): Removed method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@528 72102866-910b-0410-8b05-ffd578937521
1995-08-04 20:51:19 +00:00
mccallum
82e186ca12
([NSAutoreleasePool +autoreleaseCountForObject:]): Initialize count to 0.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@511 72102866-910b-0410-8b05-ffd578937521
1995-08-02 15:40:33 +00:00
mccallum
883fa9fab5
Include from <Foundation/...>, not <foundation/...>.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@391 72102866-910b-0410-8b05-ffd578937521
1995-04-17 21:13:20 +00:00
mccallum
30a2cbe9be
(+enableRelease:, +enableDoubleReleaseCheck:,
...
+setPoolCountThreshhold:): New methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@354 72102866-910b-0410-8b05-ffd578937521
1995-04-14 15:01:24 +00:00
mccallum
eded938ac2
Initial revision
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@92 72102866-910b-0410-8b05-ffd578937521
1995-03-12 19:35:17 +00:00