Wow, this is wonderful. I dream of working on this, some day, after we get basic values in the bag. Thank you for the pathfinding.
FTR here is my draft code for segmenting the constant pool based on constant variation (dependencies on anchors): https://github.com/rose00/valhalla/blob/1273c0a8904e7a7d465226506361ba8994371bed/src/hotspot/share/classfile/classFileParser.cpp#L1662
