Skip to content

Incompatible with Go 1.23, which doesn't allow //go:linkname to internal symbols, including to runtime package #1

@stefanb

Description

@stefanb

While testing Go 1.23 rc1 in

there was an error:

  # github.com/tickstep/aliyunpan
  link: github.com/tickstep/library-go/cachepool: invalid reference to runtime.rawbyteslice

Go 1.23 no longer allows //go:linkname * runtime.* link instructioins, see

It is used in
https://github.com/tickstep/library-go/blob/49613680e69f5fa832a5ea0b13dc68b58e9000a8/cachepool/malloc.go#L12C3-L18

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions