Request for review: 8000797: NPG: is_pseudo_string_at() doesn't work

John Rose john.r.rose at
Wed Feb 20 11:44:14 PST 2013

On Feb 20, 2013, at 10:20 AM, Coleen Phillimore <coleen.phillimore at> wrote:

> John or Christian, can you confirm that you don't plan to use object constants anymore?

Yes, that's fine.  Object constants were introduced when the JVM was internally generating bytecodes with pre-linked constant pools.  We removed that stuff from the JVM when we moved the bytecode generation up to JDK code.

We still need "live" oop constants pre-linked into the constant pool of bytecodes which implement some method handles.  We use the anonymous class pseudo-string feature for that.  The relevant code is here:

These oops are what "pseudo-strings" are.  The odd name refers to the fact that, even though they are random oops, they appear in the constant pool where one would expect (because of class file syntax) to find a string.

— John
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the hotspot-runtime-dev mailing list