Integrated: 8262476: Add filter to speed up CompileCommand lookup
Nils Eliasson
neliasso at openjdk.java.net
Fri Mar 19 09:13:40 UTC 2021
On Wed, 17 Mar 2021 20:46:30 GMT, Nils Eliasson <neliasso at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 701fd9da
Author: Nils Eliasson <neliasso at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/701fd9da
Stats: 39 lines in 1 file changed: 22 ins; 15 del; 2 mod
8262476: Add filter to speed up CompileCommand lookup
Reviewed-by: kvn, thartmann
-------------
PR: https://git.openjdk.java.net/jdk/pull/3057
More information about the hotspot-compiler-dev
mailing list