mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
1d63817661
commit
1803a6d352
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue