Work around buggy sequence points #11
Labels
No Label
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/contract-coverage-primer#11
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
It seems there is a bug in the compiler currently. After optimization and offset recalculation, some sequence points do not correspond to any valid offset.
One of the ways to partially solve a problem is to not only remember instruction offset, but also instruction length. This way some +-1 errors in offset should be solved (and because of the nature of compiler optimizations we know that sequence points preserve their order, so this should work).