Hacker News new | ask | show | jobs
by nikanj 3083 days ago
I wonder where that leaves Java, C#, Node.js etc. Do the VMs generate code that suffers from this?
2 comments

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.

yes