RFR: 8262476: Add filter to speed up CompileCommand lookup
Nils Eliasson
neliasso at openjdk.java.net
Wed Mar 17 21:14:55 UTC 2021
This was reported as "Regression in class loading micro in 16-b27"
When adding Improving the CompileCommand flag in JDK-8256508 all commands was put in the same list (instead of an array of lists that would have been long and sparsely populated). Since commands are very uncommon that seemed like a reasonable thing - but I forgot about the JMH use case that adds a lot of inlining commands. With all commands in the same list, 1000 inlining commands will cause look-ups of all commands to take a lot of time.
This PR adds a filter so that we can quickly check if a command is present or not.
-------------
Commit messages:
- Add filter to speed up CompileCommand lookup
Changes: https://git.openjdk.java.net/jdk/pull/3057/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3057&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8262476
Stats: 27 lines in 1 file changed: 22 ins; 3 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/3057.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3057/head:pull/3057
PR: https://git.openjdk.java.net/jdk/pull/3057
More information about the hotspot-compiler-dev
mailing list