TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Notes on debugging HotSpot's JIT compilation (2023)

59 pointsby lichtenbergerabout 1 year ago

3 comments

acimim_haabout 1 year ago
I don&#x27;t really see why:<p><pre><code> public class TestJIT { public static void main(String[] args) { for (int i = 0; i &lt; 20_000; i++) { payload(); } } public static int payload(int a, int b) { return a + b; } } </code></pre> shouldn&#x27;t be optimized into a &#x27;no-op&#x27;. The end-effect is the same.
评论 #39825866 未加载
评论 #39827546 未加载
评论 #39830364 未加载
评论 #39825851 未加载
评论 #39825823 未加载
saagarjhaabout 1 year ago
Excellent. Next time I’ll have something to refer to when making memes like this one: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;_saagarjha&#x2F;status&#x2F;1576961522936340480" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;_saagarjha&#x2F;status&#x2F;1576961522936340480</a>. Maybe I can avoid building OpenJDK too!
dzaimaabout 1 year ago
Some self-advertising of a linux tool I made which can display perf record data with Java JIT disassembly (doesn&#x27;t need hsdis): <a href="https:&#x2F;&#x2F;github.com&#x2F;dzaima&#x2F;grr?tab=readme-ov-file#java-jit">https:&#x2F;&#x2F;github.com&#x2F;dzaima&#x2F;grr?tab=readme-ov-file#java-jit</a>