Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for timeoutRefCheck (0.22 sec)

  1. src/crypto/tls/cache_test.go

    	// called.
    	runtime.KeepAlive(certA)
    	certA = nil
    	runtime.GC()
    
    	timeoutRefCheck(t, string(p.Bytes), 1)
    
    	// Keep certB alive until at least now, so that we can
    	// purposefully nil it and force the finalizer to be
    	// called.
    	runtime.KeepAlive(certB)
    	certB = nil
    	runtime.GC()
    
    	timeoutRefCheck(t, string(p.Bytes), 0)
    }
    
    func BenchmarkCertCache(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 19:46:27 UTC 2022
    - 2.6K bytes
    - Viewed (0)
Back to top