go/src/sync/pool_test.go

func TestPool(t *testing.T) {}

func TestPoolNew(t *testing.T) {}

// Test that Pool does not hold pointers to previously cached resources.
func TestPoolGC(t *testing.T) {}

// Test that Pool releases resources on GC.
func TestPoolRelease(t *testing.T) {}

func testPool(t *testing.T, drain bool) {}

func TestPoolStress(t *testing.T) {}

func TestPoolDequeue(t *testing.T) {}

func TestPoolChain(t *testing.T) {}

func testPoolDequeue(t *testing.T, d PoolDequeue) {}

func TestNilPool(t *testing.T) {}

func BenchmarkPool(b *testing.B) {}

func BenchmarkPoolOverflow(b *testing.B) {}

// Simulate object starvation in order to force Ps to steal objects
// from other Ps.
func BenchmarkPoolStarvation(b *testing.B) {}

var globalSink

func BenchmarkPoolSTW(b *testing.B) {}

func BenchmarkPoolExpensiveNew(b *testing.B) {}