News for hackers. Stuff that matters.
Re:Avoid speculative indirect calls in kernel by mike_hearn on Thursday January 04, 2018 @09:16AM (#16070425)
Apparently the perf impact isn't so bad outside of microbenchmarks actually. 10% for real world programs ... as long as you use profile guided optimisation to devirt as many calls as possible!

https://support.google.com/faqs/answer/7625886

http://webcache.googleusercontent.com/search?q=cache%3Ahttps...

(some websites with info on this are DoSd and down right now, including the Arm website and LLVM code review site so switched to a cache link)

Pretty painful for C++ but fixable with build changes. JVM users and other JIT-compiled languages will probably be fixable without any serious impact, as HotSpot and other advanced runtimes devirtualise calls (convert indirect to direct) as much as they can anyway, meaning most calls won't be indirect when finished and once the code has warmed up.

There are no comments on this comment yet.