Optimisation of memory dealloc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10048 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-06-01 14:12:46 +00:00
parent 1d63817661
commit 1803a6d352
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2001-06-01 Richard Frith-Macdonald <rfm@gnu.uk>
* Source/NSZone.m: NSZonefromPointer() check for empty zones
list before locking ... optimisation suggested by
Guenther Fuerthaller
2001-06-01 Nicola Pero <nicola@brainstorm.co.uk>
* Source/NSCalendarDate.m

View file

@ -417,6 +417,7 @@ NSZoneFromPointer(void *ptr)
NSZone *zone;
if (ptr == 0) return 0;
if (zone_list == 0) return 0;
/*
* See if we can find the zone in our list of all zones.