Beispiel #1
0
// Test repeated alloc/free.
func TestArrayAlloc(t *testing.T) {
	runtime.LockOSThread()

	N := BIG / 16
	size := []int{1, 4, N}
	for i := 0; i < 100; i++ {
		t := NewArray(3, size)
		t.Free()
	}
}