Differences From Artifact [933769a877]:
- File src/OFAutoreleasePool.m — part of check-in [e0c9168dfc] at 2013-02-18 12:27:09 on branch trunk — Add -[OFMutableArray initWithCapacity:]. (user: js, size: 3013) [annotate] [blame] [check-ins using]
To Artifact [06405e2bb2]:
- File
src/OFAutoreleasePool.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 3021) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
92 93 94 95 96 97 98 | } return self; } - (void)releaseObjects { | | | | 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | } return self; } - (void)releaseObjects { _ignoreRelease = true; objc_autoreleasePoolPop(_pool); _pool = objc_autoreleasePoolPush(); _objc_rootAutorelease(self); _ignoreRelease = false; } - (void)release { [self dealloc]; } |
︙ | ︙ | |||
121 122 123 124 125 126 127 | #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) OFAutoreleasePool **cache = of_tlskey_get(cacheKey); #endif if (_ignoreRelease) return; | | | | 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) OFAutoreleasePool **cache = of_tlskey_get(cacheKey); #endif if (_ignoreRelease) return; _ignoreRelease = true; objc_autoreleasePoolPop(_pool); if (cache == NULL) { cache = calloc(sizeof(OFAutoreleasePool*), MAX_CACHE_SIZE); #if !defined(OF_HAVE_COMPILER_TLS) && defined(OF_HAVE_THREADS) if (!of_tlskey_set(cacheKey, cache)) { free(cache); cache = NULL; } #endif } if (cache != NULL) { unsigned i; for (i = 0; i < MAX_CACHE_SIZE; i++) { if (cache[i] == NULL) { _pool = NULL; _ignoreRelease = false; cache[i] = self; return; } } } |
︙ | ︙ |