You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 85550e2
Browse filesBrowse the repository at this point in the historyBrowse files
- A JS-implemented -dealloc replaced the class's death hook, so instances
never reported their death: their state stayed rooted and the record,
keyed by the freed address, was handed to the next object allocated there.
WrapDealloc reports the death once the JS method returns, on the metadata,
exposedMethods and prototype-replacement paths.
- The state object is allocated before the registry lock: a collection the
allocation starts can run callbacks that take it.
- The weak sweep is posted from a GC epilogue, behind the collection's
release drain.
- IsExtendedInstance checks the protocol through the superclasses without
messaging the class; objc_initWeakOrNil is only referenced by the weak
sweep build.
- Outside canary mode an NSArray's Symbol.iterator keeps its array again, so
an unbound call still iterates it.
- Docs: a JS property named like a prototype member is defined on the canary
itself and does not survive its replacement; the state-lost warnings do
nothing in canary mode.
- Specs: a JS -dealloc class reports its deaths, the prototype-name limit,
the unbound iterator; the association spec uses an object that carries a
token, and the hand-back spec checks the old canary died.
0 commit comments