Get rid of go:linkname
for nanotime #1262
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1262
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We use it for
runtime.nanotime
to get monotonic time in the sdnotify (#1137). After go1.23linkname
will cease to work for certain scenarios. Even though,runtime.nanotime
is an explicit exception, I would rather NOT be clever in a random non-critical piece of code.Stdlib comment to nanotime offers a simple alternative.
From
9a3ef86173 (diff-859519df541485f8bd470481b752641b91a0aae638218cf4ccaea0a8677b879fR17)
:https://github.com/coreos/go-systemd/pull/435/