How to abandon (invalidate without saving) a cache line on x86_64?

安稳与你 提交于 2019-12-12 12:19:17

问题


As I understand, _mm_clflush() / _mm_clflushopt() invalidates a cache line while saving it to memory if it has been changed. Is there a way to simply abandon a cache line, without saving to memory any changes made to it?

A use case is before freeing memory: I don't need cache lines or their values anymore.

来源:https://stackoverflow.com/questions/45987746/how-to-abandon-invalidate-without-saving-a-cache-line-on-x86-64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!