Add a pthread mutex around all weak reference table operations (_WeakAssign, _WeakClear, _WeakZeroSlots). The table is a shared global data structure, and concurrent _ClassRelease calls from multiple threads could corrupt the bucket chains without locking. The mutex is coarse-grained (one lock for the entire table) but sufficient because weak references are rare relative to strong ARC operations. |
||
|---|---|---|
| .. | ||
| src | ||
| Makefile | ||
| project.xml | ||