aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/profbuf.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/profbuf.go')
-rw-r--r--src/runtime/profbuf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/profbuf.go b/src/runtime/profbuf.go
index 083b55a922..5772a8020c 100644
--- a/src/runtime/profbuf.go
+++ b/src/runtime/profbuf.go
@@ -348,7 +348,7 @@ func (b *profBuf) write(tagPtr *unsafe.Pointer, now int64, hdr []uint64, stk []u
// so there is no need for a deletion barrier on b.tags[wt].
wt := int(bw.tagCount() % uint32(len(b.tags)))
if tagPtr != nil {
- *(*uintptr)(unsafe.Pointer(&b.tags[wt])) = uintptr(unsafe.Pointer(*tagPtr))
+ *(*uintptr)(unsafe.Pointer(&b.tags[wt])) = uintptr(*tagPtr)
}
// Main record.
@@ -468,7 +468,7 @@ Read:
// Won the race, report overflow.
dst := b.overflowBuf
dst[0] = uint64(2 + b.hdrsize + 1)
- dst[1] = uint64(time)
+ dst[1] = time
for i := uintptr(0); i < b.hdrsize; i++ {
dst[2+i] = 0
}