- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for runtime_getm_for_test (0.16 sec)
-
src/runtime/testdata/testprogcgo/dropm_stub.go
// license that can be found in the LICENSE file. package main import _ "unsafe" // for go:linkname // Defined in the runtime package. // //go:linkname runtime_getm_for_test runtime.getm
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 336 bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/dropm.go
} */ import "C" import ( "fmt" "os" ) func init() { register("EnsureDropM", EnsureDropM) } var savedM uintptr //export GoCheckM func GoCheckM() { m := runtime_getm_for_test() if savedM == 0 { savedM = m } else if savedM != m { fmt.Printf("m == %x want %x\n", m, savedM) os.Exit(1) } } func EnsureDropM() { C.CheckM() fmt.Println("OK")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.1K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/bindm.go
if started.Load() != cThreadNum { // Only once for each thread, since it will wait all threads start. started.Add(1) for started.Load() < cThreadNum { runtime.Gosched() } } m := runtime_getm_for_test() mutex.Lock() defer mutex.Unlock() if savedM, ok := cThreadToM[thread]; ok && savedM != m { fmt.Printf("m == %x want %x\n", m, savedM) os.Exit(1) } cThreadToM[thread] = m }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 1.2K bytes - Viewed (0)