RFR: 8271461: CompileCommand support for hidden class methods [v2]

Jie Fu jiefu at openjdk.java.net
Fri Jul 30 06:28:29 UTC 2021


On Fri, 30 Jul 2021 05:29:56 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> $ java Lambda.java 1

Thanks @iklam for your review.

I tested your example like this.

for i in {1..30}; do
  ${JDK}/bin/java \
    Lambda 1
done

====================================
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run
Lambda$$Lambda$1/0x0000000801000a00.run


And like this

for i in {1..30}; do
  ${JDK}/bin/java \
    Lambda 2
done

====================================
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run
Lambda$$Lambda$2/0x0000000801000c18.run


Once again, the hidden class name didn't change.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4926


More information about the hotspot-compiler-dev mailing list