Skip to content

Conversation

@fingolfin
Copy link
Member

I've extracted parts of PR #5941 (which got stalled due to unexpected difficulties) into this PR. The idea being that that other PR gets simpler (hence easier to understand/debug/discuss), and thus there is also less chance for conflicts arising.

Besides running `clang-format` on the code, we replace one
IS_PLIST check by a direct tnum comparison, split 2 and 3 argument
variant implementation.
@fingolfin fingolfin requested a review from ChrisJefferson June 19, 2025 09:57
@fingolfin fingolfin added topic: kernel release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Jun 19, 2025
Most arguments are handled in the first stage. In particular all
that are relevant for the GC. The second stage is only for the
arguments which add GAP roots paths: those involve storing
strings, which can be of arbitrary size. We'd like to switch their
handling from C strings to GAP strings, but that requires the
memory manager to be initialized. With this patch, it *is*
initialized before we parse the root paths.
@fingolfin fingolfin changed the title kernel: split CLI argument parsing into two phases; change SyFindGapRootFile to return a string obj; and more kernel: split CLI argument parsing into two phases; and more Jun 19, 2025
@fingolfin fingolfin closed this Jun 19, 2025
@fingolfin fingolfin deleted the mh/sysroot-split branch June 19, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes topic: kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant