Skip to content

Change Has_walker to a function for easier ifdef and Windows dynamic linkage. - #1272

Merged
jaykrell merged 1 commit into
modula3:masterfrom
jaykrell:has-walker-is-function
Nov 21, 2026
Merged

jaykrell merged 1 commit into
modula3:masterfrom
jaykrell:has-walker-is-function

Conversation

@jaykrell

@jaykrell jaykrell commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Remove the assert of it, which is a nuisance for changing it.
I think this is going to go away entirely, actually.

@jaykrell
jaykrell force-pushed the has-walker-is-function branch 2 times, most recently from 52a97ce to 09be2e2 Compare November 21, 2026 08:01
@hosking

hosking commented Nov 21, 2026

Copy link
Copy Markdown
Member

Two things:

  1. RTStackCommon.c tests #if AMD64_DARWIN || ARM64_DARWIN || AMD64_LINUX. Those bare names aren't defined anywhere that I can find (not in m3core.h or the configs). As written, RTStack_Has_walker() returns FALSE on all three walker targets, which turns off @M3stackdump, the alloc-trace and heap-stats stack dumps there. It works if you use the forms from Provide in many cases #define M3_HOST_arch_os for ifdef converged RTStackC.c #1269/Change define M3_HOST_arch_os to be 1 instead of just defined so we can #if and not just #ifdef. #1270: #if M3_HOST_AMD64_DARWIN || M3_HOST_ARM64_DARWIN || M3_HOST_AMD64_LINUX. Since M3_HOST_* covers only some hosts, any host it doesn't cover will just get FALSE, which is the safe default.

  2. This conflicts with m3core: make ex_stack target-independent #1271 in ex_stack/RTExStack.m3 (we both drop the assert, and m3core: make ex_stack target-independent #1271's PrintStack tests Has_walker) and in common/m3makefile (the RTMachine condition). I'm happy for this to go first and will rebase m3core: make ex_stack target-independent #1271 on it, switching to Has_walker (). Once your single RTStackC.c lands, RTMachine.Has_stack_walker, the HAS_STACK_WALKER table and no_walker/ can all go.

Separately: integration runs all share one concurrency: ci group, so each new push cancels whatever is pending. Today that has knocked out runs for #1269, #1270, #1271 and master. Would you mind switching it to concurrency: ci-${{ github.ref }}?

@jaykrell
jaykrell force-pushed the has-walker-is-function branch from 09be2e2 to cad461a Compare November 21, 2026 08:25
@jaykrell
jaykrell force-pushed the has-walker-is-function branch from cad461a to a022f61 Compare November 21, 2026 08:26
@jaykrell
jaykrell merged commit 1ec439e into modula3:master Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants