Re:LLVM patch to fix half of Spectre attack
by TheCycoONE on Thursday January 04, 2018 @11:22AM
(#16071522)
The 50% was for a microbenchmark of C++ code making heavy use of virtual. V-tables and jump tables get much more expensive. Any execution path that is known at compile time is not affected.
[ Parent
| on HN ]
Re:LLVM patch to fix half of Spectre attack
by nikanj on Thursday January 04, 2018 @11:41AM
(#16071687)
I wonder where that leaves Java, C#, Node.js etc. Do the VMs generate code that suffers from this?
Re:LLVM patch to fix half of Spectre attack
by Matthias247 on Thursday January 04, 2018 @12:49PM
(#16072327)
Hmm, interesting question. On the hand JITs do devirtualization, so that on lots of code paths the indirect calls are replaced with direct ones. Which should mitigate the performance issues. However I think the JITs also need to insert the logic and branches for re-jitting and spectreulative execution. These might be additional indirect calls.
Would be interesting how it balances out in total.