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

关于垃圾回收中的写屏障的概念 #94

Open
questocat opened this issue Apr 3, 2023 · 0 comments
Open

关于垃圾回收中的写屏障的概念 #94

questocat opened this issue Apr 3, 2023 · 0 comments

Comments

@questocat
Copy link

关于垃圾回收中的写屏障的概念

垃圾回收中的写屏障与内存屏障两者应该是无关的。

屏障技术在本书指内存屏障(Memory Barrier)。 它保障了代码描述中对内存的操作顺序 既不会在编译期被编译器进行调整,也不会在运行时被 CPU 的乱序执行所打乱, 是一种语言与语言用户间的契约。
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