News for hackers. Stuff that matters.
Re:Garbage Collectors Are Scary by rwmj on Sunday May 12, 2024 @10:38AM (#40334821)
Yes! It's one of those cases where when you've seen it before and know the catch with the instruction (probably vmovdqa) then you'll immediately recognise it. If you don't know it, it's very very mysterious. Why on earth Intel decided to make a handful of instructions require alignment is also a mystery to me.
Re:Garbage Collectors Are Scary by jbosh on Sunday May 12, 2024 @11:44AM (#40335339)
Sweet mama speed. Although from what I understand it is more legacy speed cause you're losing all your time to fetching the memory anyway. But when processors were slower it was a meaningful amount.
Re:Garbage Collectors Are Scary by immibis on Sunday May 12, 2024 @12:12PM (#40335531)
The instruction wants to access one cache line, not two.
Re:Garbage Collectors Are Scary by fweimer on Sunday May 12, 2024 @11:53AM (#40335410)
It makes more sense now that Intel and AMD retconned naturally-aligned 128-bit atomic loads into the ISA: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104688 (AMD's confirmation is in comment 10.)