Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for nocgocallback (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/runtime/cgocallback.go

    Brad Fitzpatrick <******@****.***> 1456873066 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 317 bytes
    - Viewed (0)
  5. src/runtime/cgo/asm_arm.s

    TEXT crosscall2_trampoline<>(SB),NOSPLIT,$0-0
    	JMP	crosscall2(SB)
    
    // Called by C code generated by cmd/cgo.
    // func crosscall2(fn, a unsafe.Pointer, n int32, ctxt uintptr)
    // Saves C callee-saved registers and calls cgocallback with three arguments.
    // fn is the PC of a func(a unsafe.Pointer) function.
    TEXT crosscall2(SB),NOSPLIT|NOFRAME,$0
    	SUB	$(8*9), R13 // Reserve space for the floating point registers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. src/runtime/cgo/asm_amd64.s

    // func crosscall2(fn, a unsafe.Pointer, n int32, ctxt uintptr)
    // Saves C callee-saved registers and calls cgocallback with three arguments.
    // fn is the PC of a func(a unsafe.Pointer) function.
    // This signature is known to SWIG, so we can't change it.
    TEXT crosscall2(SB),NOSPLIT,$0-0
    	PUSH_REGS_HOST_TO_ABI0()
    
    	// Make room for arguments to cgocallback.
    	ADJSP	$0x18
    #ifndef GOOS_windows
    	MOVQ	DI, 0x0(SP)	/* fn */
    	MOVQ	SI, 0x8(SP)	/* arg */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/cgo/internal/testsanitizers/testdata/tsan14.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    // This program failed when run under the C/C++ ThreadSanitizer.
    //
    // cgocallback on a new thread calls into runtime.needm -> _cgo_getstackbound
    // to update gp.stack.lo with the stack bounds. If the G itself is passed to
    // _cgo_getstackbound, then writes to the same G can be seen on multiple
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/cmd/internal/objabi/funcid.go

    import (
    	"internal/abi"
    	"strings"
    )
    
    var funcIDs = map[string]abi.FuncID{
    	"abort":              abi.FuncID_abort,
    	"asmcgocall":         abi.FuncID_asmcgocall,
    	"asyncPreempt":       abi.FuncID_asyncPreempt,
    	"cgocallback":        abi.FuncID_cgocallback,
    	"corostart":          abi.FuncID_corostart,
    	"debugCallV2":        abi.FuncID_debugCallV2,
    	"gcBgMarkWorker":     abi.FuncID_gcBgMarkWorker,
    	"rt0_go":             abi.FuncID_rt0_go,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 21:33:59 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. src/runtime/cgo/asm_loong64.s

    TEXT crosscall2_trampoline<>(SB),NOSPLIT,$0-0
    	JMP	crosscall2(SB)
    
    // Called by C code generated by cmd/cgo.
    // func crosscall2(fn, a unsafe.Pointer, n int32, ctxt uintptr)
    // Saves C callee-saved registers and calls cgocallback with three arguments.
    // fn is the PC of a func(a unsafe.Pointer) function.
    TEXT crosscall2(SB),NOSPLIT|NOFRAME,$0
    	/*
    	 * We still need to save all callee save register as before, and then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:43:51 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top