[jdk19] Integrated: 8289069: Very slow C1 arraycopy jcstress tests after JDK-8279886

Igor Veresov iveresov at openjdk.org
Tue Jun 28 16:29:55 UTC 2022


On Sat, 25 Jun 2022 04:35:59 GMT, Igor Veresov <iveresov at openjdk.org> wrote:

> I used `BlockBegin::number_of_blocks()` to size the bitmaps, however that is a total number of blocks. Since `mark_loops()` is called after every inlining (for every inlinee - no need to reanalyze the whole method), the bitmaps get progressively larger, and have to be zeroed. That makes the complexity quadratic. The solution is to appropriately size the bitmaps and keep the whole thing linear. Tests look good.

This pull request has now been integrated.

Changeset: 9b7805e3
Author:    Igor Veresov <iveresov at openjdk.org>
URL:       https://git.openjdk.org/jdk19/commit/9b7805e3b4b3b5248a5cf8a5a5f3cf2260784a3b
Stats:     32 lines in 1 file changed: 10 ins; 0 del; 22 mod

8289069: Very slow C1 arraycopy jcstress tests after JDK-8279886

Reviewed-by: thartmann, kvn

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

PR: https://git.openjdk.org/jdk19/pull/72


More information about the hotspot-compiler-dev mailing list