Update to go1.24.0

This commit is contained in:
Vorapol Rinsatitnon
2025-02-14 12:42:07 +07:00
parent 25e497e367
commit bf266cebe6
3169 changed files with 236789 additions and 60275 deletions

View File

@@ -5,6 +5,7 @@
package runtime_test
import (
"internal/asan"
"runtime"
"testing"
"time"
@@ -165,6 +166,9 @@ func adjChunks() (*objtype, *objtype) {
// Make sure an empty slice on the stack doesn't pin the next object in memory.
func TestEmptySlice(t *testing.T) {
if asan.Enabled {
t.Skip("skipping with -asan: test assumes exact size class alignment, but asan redzone breaks that assumption")
}
x, y := adjChunks()
// the pointer inside xs points to y.
@@ -194,6 +198,9 @@ func adjStringChunk() (string, *objtype) {
// Make sure an empty string on the stack doesn't pin the next object in memory.
func TestEmptyString(t *testing.T) {
if asan.Enabled {
t.Skip("skipping with -asan: test assumes exact size class alignment, but asan redzone breaks that assumption")
}
x, y := adjStringChunk()
ss := x[objsize:] // change objsize to objsize-1 and the test passes