Update to go1.24.0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user