RFR: 8348998: Split out PreInit.gmk from Init.gmk [v4]
Erik Joelsson
erikj at openjdk.org
Fri Jan 31 13:45:52 UTC 2025
On Thu, 30 Jan 2025 15:04:25 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
>> The Init.gmk (and, correspondingly, InitSupport.gmk) is really two files in one: First it is called without $(SPEC), and does the work needed to locate a SPEC (and sanity check arguments), and then it calls itself again with a SPEC value.
>>
>> This is two completely different tasks, and there is no reason it should be put in the same file. It just makes the file longer and harder to read and understand.
>>
>> This work is done as a preparation for fixing https://bugs.openjdk.org/browse/JDK-8292944. The code was just to hard to follow to be able to fix it without going insane.
>>
>> Also, GitHub is spectacularly bad at showing the diff for this patch! I think it might be easier to review if you do it commit by commit, or possibly using the webrev frame view.
>
> Magnus Ihse Bursie has refreshed the contents of this pull request, and previous commits have been removed. Incremental views are not available. The pull request now contains eight commits:
>
> - Update/clarify comments, and make some small style adjustments.
> - Rename BothInitSupport to LogUtils
> - Invert if block so the common case comes first. Also some additional cleanup.
> - Rename SpecInit to just Init
> - Remove Init.gmk
> - Remove InitSupport.gmk
> - Split InitSupport.gmk into three parts
> - Split Init.gmk into two
Marked as reviewed by erikj (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/23355#pullrequestreview-2586795016
More information about the build-dev
mailing list