Skip to content

[port #1063] preserve names required by the runtime in tiny mode - #5

Open
luantak wants to merge 2 commits into
masterfrom
cursor/maremagnum-pr-1063-tiny-runtime-name-safety-2676
Open

[port #1063] preserve names required by the runtime in tiny mode#5
luantak wants to merge 2 commits into
masterfrom
cursor/maremagnum-pr-1063-tiny-runtime-name-safety-2676

Conversation

@luantak

@luantak luantak commented Aug 11, 2026

Copy link
Copy Markdown
Owner

Validity: valid

Tiny mode was removing/changing names that runtime paths consume as data (reflect stubs/GC maps, value-method wrappers, sentinels, system-goroutine filtering). Keeping only the exact toolchain-required names is a safety fix, not a cosmetic one.

Upstream

burrowers#1063

Commit layout

Commit 1 is Maremagnum's from burrowers#1063 (author preserved as on the upstream commit: autoprofiler <autoprofiler@local.invalid>); following commit(s) address luantak/mvdan review feedback and are authored by the Cursor/luantak port side.

  • 691ccf9 autoprofiler | preserve names required by the runtime in tiny mode
  • 595743c Cursor Agent | Address review feedback: fix staticcheck go:linkname comment

What this ports

  • toolchain_name_dependencies.go allowlist
  • Linker patch 0004-preserve-tiny-runtime-names.patch
  • Script test reflect-runtime-names.txtar
  • Related transformer / cache_shared wiring

Feedback applied

  • Comment changed from // go:linkname targets to // go linkname targets so staticcheck does not treat it as a mistyped directive

Testing

  • go test -run 'TestScript/(reflect-runtime-names|tiny|reflect)$' .

Remaining risks

  • Medium. Touches linker patches (must be ported per Go release) and an allowlist that can drift with toolchain changes. Script coverage helps.

Notes for Paul

High value for tiny correctness; review allowlist carefully before forwarding.

Open in Web Open in Cursor 

autoprofiler and others added 2 commits August 11, 2026 21:04
Change "// go:linkname targets" to "// go linkname targets" so
staticcheck does not treat it as a mistyped directive.

Co-authored-by: Paul <luantak@pm.me>
@cursor
cursor Bot force-pushed the cursor/maremagnum-pr-1063-tiny-runtime-name-safety-2676 branch from 722d46f to 595743c Compare August 11, 2026 21:05
@luantak
luantak marked this pull request as ready for review August 11, 2026 23:50
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