We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
看书的时候,也结合这一些博客来看,对这块的理解有点模糊: 第一种观点: 当内存充足时, gc不会回收软引用; 当内存不足时, gc会回收软引用 第二种观点: 当内存不足时, 先进行一次gc, 如果gc完之后还没有足够的空间, 再回收软引用
最开始我的理解是第二种观点,做了下实验之后,我又发现第一种观点好像也没错?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
看书的时候,也结合这一些博客来看,对这块的理解有点模糊:
第一种观点: 当内存充足时, gc不会回收软引用; 当内存不足时, gc会回收软引用
第二种观点: 当内存不足时, 先进行一次gc, 如果gc完之后还没有足够的空间, 再回收软引用
最开始我的理解是第二种观点,做了下实验之后,我又发现第一种观点好像也没错?
The text was updated successfully, but these errors were encountered: