[swift-dev] Starter bug: SR-1286 Incorrect memory management in PotentialArchetype::getNestedType

Greg Parker gparker at apple.com
Thu Apr 21 19:53:26 CDT 2016


Starter bug: SR-1286 Incorrect memory management in PotentialArchetype::getNestedType
https://bugs.swift.org/browse/SR-1286

I diagnosed a memory error that causes a compiler crash, but I didn't fix it. There are several possible changes with potentially different performance trade-offs. There are also possibly similar bugs nearby; if so a change to a safer data structure might be in order.

Your job: examine the nearby code, evaluate the trade-offs, and write a fix.


-- 
Greg Parker     gparker at apple.com     Runtime Wrangler




More information about the swift-dev mailing list