> On Mar 14, 2017, at 12:43 PM, Joe Groff <jgr...@apple.com> wrote:
> 
> Hey Greg, what are the correct refcounting bits now to set in a global 
> statically-emitted heap object that shouldn't ever be released?

For now use the same thing that stack-allocated objects use. I forget what the 
bit pattern is exactly. (I assume you are not in strictly read-only memory and 
can tolerate writes to the refcount word. We don't yet have an implementation 
for immortal read-only objects.)


-- 
Greg Parker     gpar...@apple.com <mailto:gpar...@apple.com>     Runtime 
Wrangler


_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to