Skip to content

Conversation

@thaJeztah
Copy link
Owner

@thaJeztah thaJeztah commented Oct 2, 2025

Replace uintptr fields with typed pointers so the GC considers them alive.

relates to changes in go1.25: https://go.dev/doc/go1.25#faster-slices

Faster slices

The compiler can now allocate the backing store for slices on the stack
in more situations, which improves performance. This change has the potential
to amplify the effects of incorrect unsafe.Pointer usage, see for example
issue 73199. In order to track down these problems, the bisect tool can
be used to find the allocation causing trouble using the -compile=variablemake
flag. All such new stack allocations can also be turned off using
-gcflags=all=-d=variablemakehash=n.

Assisted-by: OpenAI ChatGPT

@thaJeztah thaJeztah force-pushed the fix_go_1.25 branch 3 times, most recently from 28f87e8 to 130a4a7 Compare October 2, 2025 01:45
thaJeztah and others added 3 commits October 2, 2025 18:31
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.11.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.9.0...v1.11.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-version: 1.11.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Replace uintptr fields with typed pointers so the GC considers them alive.

relates to changes in go1.25: https://go.dev/doc/go1.25#faster-slices

> Faster slices
>
> The compiler can now allocate the backing store for slices on the stack
> in more situations, which improves performance. This change has the potential
> to amplify the effects of incorrect `unsafe.Pointer` usage, see for example
> [issue 73199]. In order to track down these problems, the [bisect tool] can
> be used to find the allocation causing trouble using the `-compile=variablemake`
> flag. All such new stack allocations can also be turned off using
> `-gcflags=all=-d=variablemakehash=n`.

[issue 73199]: https://go.dev/issue/73199
[bisect tool]: https://pkg.go.dev/golang.org/x/tools/cmd/bisect

Assisted-by: OpenAI ChatGPT
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah closed this Oct 2, 2025
@thaJeztah thaJeztah deleted the fix_go_1.25 branch October 2, 2025 19:48
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