Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

34题-36题-题目中很多对AutoreleasePool的理解都是有问题的 #112

Closed
SepCode opened this issue Apr 16, 2019 · 3 comments
Closed

Comments

@SepCode
Copy link

SepCode commented Apr 16, 2019

非自己创建并且ARC未优化成功的或__autoreleasing修饰的非Tagged Pointer对象。我这个总结也不全面,有时间写篇文章再放出新的总结

@SepCode
Copy link
Author

SepCode commented May 5, 2019

首先36题中的描述不正确,AutoreleasePool是以AutoreleasePoolPage为结点的双向链表来实现的。

@SepCode
Copy link
Author

SepCode commented May 6, 2019

34题中描述也不严谨,__autoreleasing修饰的autorelease对象,是在创建好之后调用objc_autorelease加入到释放池,并不是出了作用域。

@SepCode
Copy link
Author

SepCode commented May 6, 2019

不过很多技术有时效性,没使用Tagged Pointer对象之前是另一个结果,没优化之前又是另一个结果。

@ChenYilong ChenYilong changed the title 题目中很多对AutoreleasePool的理解都是有问题的 34题-题目中很多对AutoreleasePool的理解都是有问题的 Jun 8, 2020
@ChenYilong ChenYilong changed the title 34题-题目中很多对AutoreleasePool的理解都是有问题的 34题-36题-题目中很多对AutoreleasePool的理解都是有问题的 Jun 10, 2020
@SepCode SepCode closed this as completed Oct 25, 2020
@SepCode SepCode reopened this Oct 25, 2020
@SepCode SepCode closed this as completed Oct 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant