Overview
Comment: | Make autorelease.m work with old Apple runtimes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
f04894828e5bda9581e36c5cf39b4762 |
User & Date: | js on 2021-08-07 23:31:05 |
Other Links: | manifest | tags |
Context
2021-08-08
| ||
01:02 | OFUTF8String: Fix leak in case of exception check-in: 3c21284980 user: js tags: trunk | |
2021-08-07
| ||
23:31 | Make autorelease.m work with old Apple runtimes check-in: f04894828e user: js tags: trunk | |
23:25 | Make Apple GCC 4.0.1 happy again check-in: 176e97bd4d user: js tags: trunk | |
Changes
Modified src/runtime/autorelease.m from [c90ec8958a] to [4890f3bc38].
︙ | ︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 | #endif #ifndef OF_OBJFW_RUNTIME @interface DummyObject - (void)release; @end #endif #if defined(OF_HAVE_COMPILER_TLS) static thread_local id *objects = NULL; static thread_local uintptr_t count = 0; static thread_local uintptr_t size = 0; #elif defined(OF_HAVE_THREADS) static OFTLSKey objectsKey, countKey, sizeKey; | > > > > > | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | #endif #ifndef OF_OBJFW_RUNTIME @interface DummyObject - (void)release; @end #endif #ifndef OBJC_ERROR /* This is also used with old Apple runtimes that lack autorelease pools. */ # define OBJC_ERROR(...) abort() #endif #if defined(OF_HAVE_COMPILER_TLS) static thread_local id *objects = NULL; static thread_local uintptr_t count = 0; static thread_local uintptr_t size = 0; #elif defined(OF_HAVE_THREADS) static OFTLSKey objectsKey, countKey, sizeKey; |
︙ | ︙ |