- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,041 for cgoUse (0.29 sec)
-
src/runtime/cgo.go
func cgoUse(any) { throw("cgoUse should not be called") } // cgoAlwaysFalse is a boolean value that is always false. // The cgo-generated code says if cgoAlwaysFalse { cgoUse(p) }. // The compiler cannot see that cgoAlwaysFalse is always false, // so it emits the test and keeps the call, giving the desired // escape analysis result. The test is cheaper than the call. var cgoAlwaysFalse bool var cgo_yield = &_cgo_yield func cgoNoCallback(v bool) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 3.1K bytes - Viewed (0) -
src/runtime/linkname.go
package runtime import _ "unsafe" // used in internal/godebug and syscall //go:linkname write // used by cgo //go:linkname _cgo_panic_internal //go:linkname cgoAlwaysFalse //go:linkname cgoUse //go:linkname cgoCheckPointer //go:linkname cgoCheckResult //go:linkname cgoNoCallback //go:linkname gobytes //go:linkname gostringn // used in plugin //go:linkname doInit // used in math/bits
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 778 bytes - Viewed (0) -
internal/http/close.go
"io" xioutil "github.com/minio/minio/internal/ioutil" ) // DrainBody close non nil response with any response Body. // convenient wrapper to drain any remaining data on response body. // // Subsequently this allows golang http RoundTripper // to reuse the same connection for future requests. func DrainBody(respBody io.ReadCloser) { // Callers should close resp.Body when done reading from it.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testso/testdata/so/cgoso.go
Austin Clements <******@****.***> 1684445525 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:41 UTC 2023 - 761 bytes - Viewed (0) -
src/runtime/internal/wasitest/tcpecho_test.go
"math/rand" "net" "os" "os/exec" "testing" "time" ) func TestTCPEcho(t *testing.T) { if target != "wasip1/wasm" { t.Skip() } // We're unable to use port 0 here (let the OS choose a spare port). // Although the WASM runtime accepts port 0, and the WASM module listens // successfully, there's no way for this test to query the selected port // so that it can connect to the WASM module. The WASM module itself
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 22:01:11 UTC 2024 - 2.4K bytes - Viewed (0) -
src/compress/flate/writer_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 5.4K bytes - Viewed (0) -
src/log/syslog/syslog_test.go
if err != nil { t.Errorf("syslog.Dial() failed: %v", err) return } defer w.Close() for i := 0; i < M; i++ { err := w.Info("test") if err != nil { t.Errorf("Info() failed: %v", err) return } } }() } wg.Wait() sock.Close() srvWG.Wait() close(done) select { case <-count: case <-time.After(100 * time.Millisecond):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 12 16:09:24 UTC 2023 - 9.6K bytes - Viewed (0) -
src/cmd/go/internal/modfetch/codehost/svn.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 02:47:12 UTC 2023 - 4.5K bytes - Viewed (0) -
src/runtime/race/testdata/select_test.go
}() _ = x <-done } // The idea behind this test: // there are two variables, access to one // of them is synchronized, access to the other // is not. // Select must (unconditionally) choose the non-synchronized variable // thus causing exactly one race. // Currently this test doesn't look like it accomplishes // this goal. func TestRaceSelect5(t *testing.T) { done := make(chan bool, 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 01 05:25:54 UTC 2020 - 4.1K bytes - Viewed (0) -
src/cmd/go/internal/lockedfile/mutex.go
func (mu *Mutex) Lock() (unlock func(), err error) { if mu.Path == "" { panic("lockedfile.Mutex: missing Path during Lock") } // We could use either O_RDWR or O_WRONLY here. If we choose O_RDWR and the // file at mu.Path is write-only, the call to OpenFile will fail with a // permission error. That's actually what we want: if we add an RLock method
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 17:17:40 UTC 2019 - 2.3K bytes - Viewed (0)