RFR: 8271461: CompileCommand support for hidden class methods
Jie Fu
jiefu at openjdk.java.net
Fri Jul 30 02:51:28 UTC 2021
On Fri, 30 Jul 2021 01:43:16 GMT, David Holmes <dholmes at openjdk.org> wrote:
> In terms of simply expanding the capability of the command parser this seems reasonable - and that is all that the test verifies.
>
> Whether it will actually work in terms of compiling the expected code is not something that is not guaranteed due to the hidden class name not being guaranteed to remain the same, but it may in practice occur enough to be useful.
>
> Thanks,
> David
Yes, I run 100 times with this script.
for i in {1..100}; do
echo ${i}
`pwd`/build/linux-x86_64-server-fastdebug/images/jdk/bin/java \
-Xcomp -Xbatch -XX:+PrintCompilation | tee fu-${i}.log
done
The hidden class name never changed.
$ grep "0x00000008010413c8::run" fu*.log | grep "made zombie"
fu-1.log: 8360 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-10.log: 8354 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-100.log: 8334 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-11.log: 8351 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-12.log: 8380 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-13.log: 8354 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-14.log: 8329 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-15.log: 8346 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-16.log: 8341 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-17.log: 8269 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-18.log: 8352 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-19.log: 8337 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-2.log: 8344 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-20.log: 8537 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-21.log: 8339 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-22.log: 8359 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-23.log: 8223 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-24.log: 8353 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-25.log: 8351 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-26.log: 8366 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-27.log: 8207 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-28.log: 8327 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-29.log: 8353 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-3.log: 8170 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-30.log: 8247 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-31.log: 8382 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-32.log: 8338 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-33.log: 8332 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-34.log: 8347 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-35.log: 8366 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-36.log: 8346 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-37.log: 8389 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-38.log: 8338 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-39.log: 8226 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-4.log: 8348 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-40.log: 8367 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-41.log: 8355 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-42.log: 8362 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-43.log: 8381 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-44.log: 8347 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-45.log: 8240 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-46.log: 8363 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-47.log: 8266 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-48.log: 8318 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-49.log: 8350 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-5.log: 8362 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-50.log: 8346 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-51.log: 8253 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-52.log: 8358 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-53.log: 8319 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-54.log: 8336 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-55.log: 8371 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-56.log: 8343 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-57.log: 8236 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-58.log: 8351 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-59.log: 8284 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-6.log: 8225 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-60.log: 8209 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-61.log: 8361 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-62.log: 8363 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-63.log: 8357 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-64.log: 8337 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-65.log: 8354 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-66.log: 8357 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-67.log: 8368 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-68.log: 8348 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-69.log: 8343 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-7.log: 8388 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-70.log: 8348 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-71.log: 8354 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-72.log: 8370 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-73.log: 8344 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-74.log: 8248 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-75.log: 8351 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-76.log: 8357 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-77.log: 8361 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-78.log: 8344 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-79.log: 8369 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-8.log: 8339 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-80.log: 8338 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-81.log: 8356 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-82.log: 8343 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-83.log: 8344 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-84.log: 8331 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-85.log: 8341 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-86.log: 8262 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-87.log: 8336 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-88.log: 8237 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-89.log: 8219 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-9.log: 8349 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-90.log: 8241 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-91.log: 8240 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-92.log: 8395 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-93.log: 8367 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-94.log: 8349 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-95.log: 8198 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-96.log: 8365 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-97.log: 8226 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-98.log: 8235 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
fu-99.log: 8358 1583 3 java.util.ResourceBundle$$Lambda$1/0x00000008010413c8::run (8 bytes) made zombie
-------------
PR: https://git.openjdk.java.net/jdk/pull/4926
More information about the hotspot-compiler-dev
mailing list