On Fri, 20 Nov 2026 09:06:54 GMT, Eric Fang <[email protected]> wrote:

>> Hi @jaikiran @lahodaj Thank you both for the feedback.
>> 
>> First, regarding to the AI policy, to be honest: English is not my first 
>> language, so I used an AI tool to help polish the PR description, commit 
>> message, and code comments, and also used an AI code review tool to review 
>> the code. I apologize for not following https://openjdk.org/legal/ai 
>> strictly, and I will close this PR.
>> 
>> On the technical side, I agree with both of your points—putting this kind of 
>> heuristic into the launcher introduces coupling and ongoing maintenance cost.
>> 
>> As a much simpler alternative, do you think it would be worthwhile to just 
>> document `-XX:TieredStopAtLevel=1` in the `java / javac` man page, noting 
>> that `-J-XX:TieredStopAtLevel=1` can help speed up short-lived javac tool 
>> calls?
>
>> As a much simpler alternative, do you think it would be worthwhile to just 
>> document -XX:TieredStopAtLevel=1 in the java / javac man page, noting that 
>> -J-XX:TieredStopAtLevel=1 can help speed up short-lived javac tool calls?
> 
> This way, the LLM might be able to infer from the Java documentation that it 
> should add the `-XX:TieredStopAtLevel=1` option when invoking the javac tool.

@erifan Can you say if there was any previous discussion about this on the 
OpenJDK mailing lists? I think there are several concerns with this proposal. 
The heuristic seems very ad hoc. javac innovations are all over the map when it 
comes to complexity and not clear that the compilation cost can be represented 
by the total size of explicitly listed source files. There is also the 
modularity concern as it couples the java launcher to javac in a way that makes 
it hard to find and maintainer.  The interesting thing, at least in my view, is 
your use of source launcher beyond what JEP 330 might have originally expected. 
 Of the 375 projects, do they actually run like this or is this benchmark just 
skipping their build tests.

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

PR Comment: https://git.openjdk.org/jdk/pull/33991#issuecomment-7035419657

Reply via email to