- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for cgoCheckPtrWrite (0.18 sec)
-
src/runtime/atomic_pointer.go
// //go:nosplit func atomicstorep(ptr unsafe.Pointer, new unsafe.Pointer) { if writeBarrier.enabled { atomicwb((*unsafe.Pointer)(ptr), new) } if goexperiment.CgoCheck2 { cgoCheckPtrWrite((*unsafe.Pointer)(ptr), new) } atomic.StorepNoWB(noescape(ptr), new) } // atomic_storePointer is the implementation of runtime/internal/UnsafePointer.Store // (like StoreNoWB but with the write barrier). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 4K bytes - Viewed (0) -
src/runtime/cgocheck.go
const cgoWriteBarrierFail = "unpinned Go pointer stored into non-Go memory" // cgoCheckPtrWrite is called whenever a pointer is stored into memory. // It throws if the program is storing an unpinned Go pointer into non-Go // memory. // // This is called from generated code when GOEXPERIMENT=cgocheck2 is enabled. // //go:nosplit //go:nowritebarrier func cgoCheckPtrWrite(dst *unsafe.Pointer, src unsafe.Pointer) { if !mainStarted {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 7.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
ir.Syms.AssertI2I2 = typecheck.LookupRuntimeFunc("assertI2I2") ir.Syms.CgoCheckMemmove = typecheck.LookupRuntimeFunc("cgoCheckMemmove") ir.Syms.CgoCheckPtrWrite = typecheck.LookupRuntimeFunc("cgoCheckPtrWrite") ir.Syms.CheckPtrAlignment = typecheck.LookupRuntimeFunc("checkptrAlignment") ir.Syms.Deferproc = typecheck.LookupRuntimeFunc("deferproc")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0)