Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radkomih committed Dec 5, 2023
1 parent 1dcdad5 commit 3270b64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/gc_extalloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func expandAllocationsIfNeeded(gcRan *bool) {

// Create a new slice header for the allocations list.
newAllocationsHeader := getSliceHeader(&allocations)
setsliceHeader(newAllocationsHeader, ptr, allocationsHeader.len, doubledCap)
setSliceHeader(newAllocationsHeader, ptr, allocationsHeader.len, doubledCap)

// Copy the old allocations to the new allocations list.
copyAllocations(newAllocationsHeader, &allocationsHeader)
Expand All @@ -284,7 +284,7 @@ func getSliceHeader(list *[]heapAllocation) *sliceHeader {
// Set the slice header to the given values.
//
//go:inline
func setsliceHeader(header *sliceHeader, ptr unsafe.Pointer, len, cap uintptr) {
func setSliceHeader(header *sliceHeader, ptr unsafe.Pointer, len, cap uintptr) {
header.ptr = ptr
header.len = len
header.cap = cap
Expand Down

0 comments on commit 3270b64

Please sign in to comment.