Hasty Briefsbeta

Bilingual

Linux 7.1 Gets Rid of Some Unnecessary Memory Clobbers

9 hours ago
  • #Memory Optimization
  • #Linux Kernel
  • #x86 Assembly
  • Linux 7.1 kernel incorporates x86/asm changes with minor improvements, primarily removing unnecessary memory clobbers from inline Assembly code.
  • Removing memory clobbers can slightly enhance instruction scheduling and register allocation by avoiding read/write memory barriers that prevent compiler reordering and force register flushes.
  • Two patches were applied: one eliminates a memory clobber from the kernel's FS/GS base accessors (which only read MSRs, not memory), and another removes a clobber from savesegment() for similar reasons.