On Thu, 26 Jun 2025 06:56:17 GMT, Eirik Bjørsnøs <eir...@openjdk.org> wrote:

> For these simple class files I would assume using the class file API to 
> generate the class files directly without involving javac at all would both 
> simplify this test and run faster.

Here's a branch on top of your PR with an exploration of this approach:

https://github.com/slowhog/jdk/compare/JDK-8359174...eirbjo:jdk:25981-classfile-api

This runs in less than 9 seconds on my machine, compared to 27 seconds  for the 
current PR.

Also noted that the `@enablePreview` seems no longer needed. The test now also 
runs fine without the heap adjustment and the `BytecodeVerificationLocal` 
options (but I don't understand the purpose of that one, perhaps it does serve 
some purpose?).

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

PR Comment: https://git.openjdk.org/jdk/pull/25981#issuecomment-3007632130

Reply via email to