Overview
Comment: | Small optimization for objc_storeStrong() |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
9d12f9759fce078b10b2498f3c97f1a8 |
User & Date: | js on 2017-05-14 00:11:59 |
Other Links: | manifest | tags |
Context
2017-05-14
| ||
01:30 | macros.h: Add null_unspecified check-in: 03963d9304 user: js tags: trunk | |
00:11 | Small optimization for objc_storeStrong() check-in: 9d12f9759f user: js tags: trunk | |
2017-05-13
| ||
23:27 | Add depth limit for MessagePack check-in: c0d8a3426c user: js tags: trunk | |
Changes
Modified src/runtime/arc.m from [ae0f383c89] to [95cfbe530e].
︙ | ︙ | |||
105 106 107 108 109 110 111 | { return objc_retain(object); } id objc_storeStrong(id *object, id value) { | > | | | > | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | { return objc_retain(object); } id objc_storeStrong(id *object, id value) { if (*object != value) { id old = *object; *object = objc_retain(value); objc_release(old); } return value; } id objc_storeWeak(id *object, id value) { |
︙ | ︙ |