Addressing Meltdown and Spectre in the kernel
Addressing Meltdown and Spectre in the kernel
Posted Jan 8, 2018 17:03 UTC (Mon) by mgb (guest, #3226)In reply to: Addressing Meltdown and Spectre in the kernel by excors
Parent article: Addressing Meltdown and Spectre in the kernel
In your example if n->data and n->next are in the same cache line there will be one fetch and if not there will be two fetches.
It makes no difference whether speculative fetches are enabled, disabled, or enabled only to the L1 cache.
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.