- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CgoNoEscape (0.1 sec)
-
src/runtime/testdata/testprogcgo/cgonoescape.go
"unsafe" ) const num = 100 func init() { register("CgoNoEscape", CgoNoEscape) } //go:noinline func withNoEscape() { var str string C.runCWithNoEscape(unsafe.Pointer(&str)) } //go:noinline func withoutNoEscape() { var str string C.runCWithoutNoEscape(unsafe.Pointer(&str)) } func CgoNoEscape() { // make GC stop to see the heap objects allocated debug.SetGCPercent(-1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 16:43:23 UTC 2023 - 1.8K bytes - Viewed (0) -
src/runtime/crash_cgo_test.go
t.Fatalf("did not see %q in output:\n%s", want, got) } } func TestCgoNoEscape(t *testing.T) { t.Skip("TODO(#56378): enable in Go 1.23") got := runTestProg(t, "testprogcgo", "CgoNoEscape") want := "OK\n" if got != want { t.Fatalf("want %s, got %s\n", want, got) } } func TestCgoTracebackGoroutineProfile(t *testing.T) { output := runTestProg(t, "testprogcgo", "GoroutineProfile")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 16:44:47 UTC 2024 - 22.2K bytes - Viewed (0)