Skip to content

Commit

Permalink
nocheckptr
Browse files Browse the repository at this point in the history
  • Loading branch information
nikandfor committed Jul 28, 2024
1 parent cd93f69 commit 4e1d1d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions name_file_line_unsafe.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func (l PC) FuncEntry() PC {
return PC(f.Entry)
}

//go:nocheckptr
func (l PC) frame() runtimeFrame {
fs0 := &runtimeFrames{}

Expand All @@ -31,8 +32,7 @@ func (l PC) frame() runtimeFrame {
fs.len = 1
fs.frames = fs.frameStore[:0]

x = (uintptr)(unsafe.Pointer(fs))
r := (*runtime.Frames)(unsafe.Pointer(x ^ 0))
r := (*runtime.Frames)(unsafe.Pointer(fs))

f, _ := r.Next()

Expand Down

0 comments on commit 4e1d1d5

Please sign in to comment.