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.

Debugging in the Time of JITs

62 pointsby steeplesover 10 years ago

3 comments

gsgover 10 years ago
Interesting article. I'm writing a toy trace compiler at the moment and implementing side exits brings up many of the same, rather irritating problems.
Skinneyover 10 years ago
Would be fun to try to compare this with a decent GC and see what the difference is likely to be. The reason why I say this is because Javas default GC pre-allocates a heap (a Java allocation is mostly just bumping a pointer), and since it &quot;frees&quot; memory by copying survivors to a new space you also avoid fragmentation.<p>If it turns out that what you mostly pay for, when using a GC, is that collection happens at one point in time instead of incrementally, then Go&#x27;s plan for the evolution of their GC just became a lot more interesting.
评论 #8729128 未加载
ameliusover 10 years ago
It seems to me that we should not make the problem more complicated than necessary. If you&#x27;re debugging code written in Javascript, you may assume that the JIT optimizer is correct. If you need special features enabled (such as stack traces, etc.), then just pepper the code that <i>enters</i> the JIT with logging instructions, etc.<p>There should never be a need to completely disable the JIT optimizer, except perhaps to debug the JIT itself.
评论 #8729312 未加载
评论 #8730656 未加载