Wow. That JIT stub generation code is freaking terrifying: https://github.com/openjdk/jdk/blob/5177a70b385c16f26ede191f...
I suspect it's not the only issue they're going to find there.
Whenever I see code like this, I am always struck by how there are two types of programmers—those like me, and those who can work on whatever the hell that is.
This actually looks pretty reasonable for a JIT