Skip to content

Conversation

@fingolfin
Copy link
Member

[This is identical to PR #6013 but I accidentally made that from a branch in this repo and then not all CI tests run, which is bad. Something to consider fixing at some point but for now...]

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.
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 added topic: kernel release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Jun 19, 2025
@fingolfin fingolfin requested a review from ChrisJefferson June 19, 2025 18:28
The main motivation here is to avoid calling `SySetGapRootPath` in
`main` -- instead we want to defer this until just before we parse
the command line arguments specifying root paths. This will in the
future allow us to switch `SySetGapRootPath` to using GAP objects.
@fingolfin fingolfin merged commit ddca1be into gap-system:master Jun 21, 2025
30 checks passed
@fingolfin fingolfin deleted the mh/sysroot-split branch June 21, 2025 15:30
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