- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for nocgocallback (0.21 sec)
-
src/runtime/cgo.go
// escape analysis result. The test is cheaper than the call. var cgoAlwaysFalse bool var cgo_yield = &_cgo_yield func cgoNoCallback(v bool) { g := getg() if g.nocgocallback && v { panic("runtime: unexpected setting cgoNoCallback") } g.nocgocallback = v
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/cgocall.go
// stack and outside the $GOMAXPROCS limit. crosscall2 calls // runtime.cgocallback(_cgoexp_GoF, frame, ctxt) using the gc ABI. // (crosscall2's framesize argument is no longer used, but there's one // case where SWIG calls crosscall2 directly and expects to pass this // argument. See _cgo_panic.) // // runtime.cgocallback (in asm_$GOARCH.s) switches from m.g0's stack // to the original g (m.curg)'s stack, on which it calls
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/runtime/runtime2.go
// Used by the execution tracer. inMarkAssist bool coroexit bool // argument to coroswitch_m raceignore int8 // ignore race detection events nocgocallback bool // whether disable callback from C tracking bool // whether we're tracking this G for sched latency statistics trackingSeq uint8 // used to decide whether to track this G
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:57:37 UTC 2024 - 47.9K bytes - Viewed (0) -
src/runtime/sys_windows_amd64.s
// Create a struct callbackArgs on our stack to be passed as // the "frame" to cgocallback and on to callbackWrap. SUBQ $(24+callbackArgs__size), SP MOVQ AX, (24+callbackArgs_index)(SP) // callback index MOVQ R8, (24+callbackArgs_args)(SP) // address of args vector MOVQ $0, (24+callbackArgs_result)(SP) // result LEAQ 24(SP), AX // Call cgocallback, which will call callbackWrap(frame). MOVQ $0, 16(SP) // context
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 07:24:08 UTC 2024 - 8.4K bytes - Viewed (0) -
src/runtime/stubs.go
func noEscapePtr[T any](p *T) *T { x := uintptr(unsafe.Pointer(p)) return (*T)(unsafe.Pointer(x ^ 0)) } // Not all cgocallback frames are actually cgocallback, // so not all have these arguments. Mark them uintptr so that the GC // does not misinterpret memory when the arguments are not present. // cgocallback is not called from Go, only from crosscall2. // This in turn calls cgocallbackg, which is where we'll find
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 20.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_libinit.c
} return EAGAIN; } static void pthread_key_destructor(void* g) { if (x_crosscall2_ptr != NULL) { // fn == NULL means dropm. // We restore g by using the stored g, before dropm in runtime.cgocallback, // since the g stored in the TLS by Go might be cleared in some platforms, // before this destructor invoked. x_crosscall2_ptr(NULL, g, 0, 0); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 01:07:18 UTC 2024 - 5.8K bytes - Viewed (0) -
src/runtime/asm_mipsx.s
JAL runtime·save_g(SB) MOVW (g_stack+stack_hi)(g), R5 MOVW 20(R29), R6 SUBU R6, R5 MOVW R5, R29 MOVW R2, ret+8(FP) RET // cgocallback(fn, frame unsafe.Pointer, ctxt uintptr) // See cgocall.go for more details. TEXT ·cgocallback(SB),NOSPLIT,$12-12 NO_LOCAL_POINTERS // Skip cgocallbackg, just dropm when fn is nil, and frame is the saved g. // It is used to dropm while thread is exiting.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 11:46:29 UTC 2024 - 26.3K bytes - Viewed (0) -
src/runtime/asm_arm.s
MOVW R2, 16(R13) // Save old stack pointer. BL (R1) // Restore stack pointer. MOVW 16(R13), R2 MOVW R2, R13 MOVW R0, ret+8(FP) RET // cgocallback(fn, frame unsafe.Pointer, ctxt uintptr) // See cgocall.go for more details. TEXT ·cgocallback(SB),NOSPLIT,$12-12 NO_LOCAL_POINTERS // Skip cgocallbackg, just dropm when fn is nil, and frame is the saved g. // It is used to dropm while thread is exiting.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 23 21:00:52 UTC 2024 - 32.1K bytes - Viewed (0) -
src/runtime/asm_loong64.s
JAL runtime·save_g(SB) MOVV (g_stack+stack_hi)(g), R5 MOVV 8(R3), R6 SUBVU R6, R5 MOVV R5, R3 MOVW R4, ret+16(FP) RET // func cgocallback(fn, frame unsafe.Pointer, ctxt uintptr) // See cgocall.go for more details. TEXT ·cgocallback(SB),NOSPLIT,$24-24 NO_LOCAL_POINTERS // Skip cgocallbackg, just dropm when fn is nil, and frame is the saved g. // It is used to dropm while thread is exiting.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 15:04:25 UTC 2024 - 26.5K bytes - Viewed (0) -
src/runtime/asm_386.s
MOVL BX, 0(SP) // first argument in x86-32 ABI CALL AX MOVL 4(SP), CX // restore original stack pointer MOVL CX, SP MOVL AX, ret+8(FP) RET // cgocallback(fn, frame unsafe.Pointer, ctxt uintptr) // See cgocall.go for more details. TEXT ·cgocallback(SB),NOSPLIT,$12-12 // Frame size must match commented places below NO_LOCAL_POINTERS // Skip cgocallbackg, just dropm when fn is nil, and frame is the saved g.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 15:45:13 UTC 2024 - 43.1K bytes - Viewed (0)