Integrated: 8367279: Test tools/javac/tree/TreePosTest.java timed out
Jan Lahoda
jlahoda at openjdk.org
Wed Oct 1 11:19:18 UTC 2025
On Wed, 17 Sep 2025 08:20:09 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> The `test/langtools/tools/javac/tree/TreePosTest.java` tries to parse all langtools tests, and started to time out recently in some cases. In the case of this test, we can try to use the `JavacTaskPool`, which pools and reuses javac instances, rather than creating (and initializing) a javac instance for each file. Given this test only parses the file, and even attributes them, this should be relatively safe.
>
> Locally, I can't confirm too significant time improvements (before this change ~6s, after this change ~4s), but it might help on CI.
This pull request has now been integrated.
Changeset: 3607e998
Author: Jan Lahoda <jlahoda at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3607e9986f1582ebdae1b6ad2a13c1a9c239e0d6
Stats: 29 lines in 1 file changed: 6 ins; 8 del; 15 mod
8367279: Test tools/javac/tree/TreePosTest.java timed out
Reviewed-by: asotona
-------------
PR: https://git.openjdk.org/jdk/pull/27334
More information about the compiler-dev
mailing list