Nothing like debugging heap graph traversal code at the airport with a cocktail & steak

#AndroidDev #dcnyc2024

I'm playing with rendering a heap dump as a treemap based on the heap's dominator tree. The issue is, most nodes end up having root as a dominator, making this not a very useful visualization. So I'm trying to figure out what's leading to most nodes being dominated by the forest root.
Boarding, jfk to sfo. I might figure this out and build a very cool thing . Most likely I'll fall asleep though. Wish me luck

Uuuugh so this was a bad idea.. because now I thought deeply about the existing code and realized I probably made a dumb mistake, and I think I found an edge case that shows I never really computed dominators right.

So, let's go back to basics, why do we care about dominators in a jvm heap anyway?

@py blog post time PY - an even deeper dive would be awesome to read 😎

@bidetofevil haha yeah, if I get to the bottom of this and find the time to write it up, sure

Mastodon threads are easy mini blog post drafts