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

665 views Asked by At

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.

0

There are 0 answers