Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 838 for ncgo (0.34 sec)

  1. src/runtime/cgo.go

    var set_crosscall2 func()
    
    // cgoHasExtraM is set on startup when an extra M is created for cgo.
    // The extra M must be created before any C/C++ code calls cgocallback.
    var cgoHasExtraM bool
    
    // cgoUse is called by cgo-generated code (using go:linkname to get at
    // an unexported name). The calls serve two purposes:
    // 1) they are opaque to escape analysis, so the argument is considered to
    // escape to the heap.
    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/cmd/vet/testdata/cgo/cgo.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the cgo checker.
    
    package testdata
    
    // void f(void *p) {}
    import "C"
    
    import "unsafe"
    
    func CgoTests() {
    	var c chan bool
    	C.f(*(*unsafe.Pointer)(unsafe.Pointer(&c))) // ERROR "embedded pointer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 462 bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	if mp.lockedg != 0 {
    		stoplockedm()
    		execute(mp.lockedg.ptr(), false) // Never returns.
    	}
    
    	// We should not schedule away from a g that is executing a cgo call,
    	// since the cgo call is using the m's g0 stack.
    	if mp.incgo {
    		throw("schedule: in cgo")
    	}
    
    top:
    	pp := mp.p.ptr()
    	pp.preempt = false
    
    	// Safety check: if we are spinning, the run queue should be empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/cgo.go

    Russ Cox <******@****.***> 1509125409 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 13:20:27 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  5. .gitignore

    *.pyc
    ._*
    .nfs.*
    [56789a].out
    *~
    *.orig
    *.rej
    *.exe
    .*.swp
    core
    *.cgo*.go
    *.cgo*.c
    _cgo_*
    _obj
    _test
    _testmain.go
    
    /VERSION.cache
    /bin/
    /build.out
    /doc/articles/wiki/*.bin
    /goinstall.log
    /last-change
    /misc/cgo/life/run.out
    /misc/cgo/stdio/run.out
    /misc/cgo/testso/main
    /pkg/
    /src/*.*/
    /src/cmd/cgo/zdefaultcc.go
    /src/cmd/dist/dist
    /src/cmd/go/internal/cfg/zdefaultcc.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 958 bytes
    - Viewed (0)
  6. src/internal/trace/testdata/testprog/cgo-callback.go

    Carlos Amedee <******@****.***> 1715265901 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/runtime/rt0_linux_arm64.s

    	BL	(R4)
    
    	// Create a new thread to do the runtime initialization and return.
    	MOVD	_cgo_sys_thread_create(SB), R4
    	CBZ	R4, nocgo
    	MOVD	$_rt0_arm64_linux_lib_go(SB), R0
    	MOVD	$0, R1
    	SUB	$16, RSP		// reserve 16 bytes for sp-8 where fp may be saved.
    	BL	(R4)
    	ADD	$16, RSP
    	B	restore
    
    nocgo:
    	MOVD	$0x800000, R0                     // stacksize = 8192KB
    	MOVD	$_rt0_arm64_linux_lib_go(SB), R1
    	MOVD	R0, 8(RSP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 01:28:43 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/runtime/rt0_freebsd_arm64.s

    	BL	(R4)
    
    	// Create a new thread to do the runtime initialization and return.
    	MOVD	_cgo_sys_thread_create(SB), R4
    	CBZ	R4, nocgo
    	MOVD	$_rt0_arm64_freebsd_lib_go(SB), R0
    	MOVD	$0, R1
    	SUB	$16, RSP	// reserve 16 bytes for sp-8 where fp may be saved.
    	BL	(R4)
    	ADD	$16, RSP
    	B	restore
    
    nocgo:
    	MOVD	$0x800000, R0                     // stacksize = 8192KB
    	MOVD	$_rt0_arm64_freebsd_lib_go(SB), R1
    	MOVD	R0, 8(RSP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 01:28:43 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  9. src/runtime/rt0_netbsd_arm64.s

    	BL	(R4)
    
    	// Create a new thread to do the runtime initialization and return.
    	MOVD	_cgo_sys_thread_create(SB), R4
    	CBZ	R4, nocgo
    	MOVD	$_rt0_arm64_netbsd_lib_go(SB), R0
    	MOVD	$0, R1
    	SUB	$16, RSP		// reserve 16 bytes for sp-8 where fp may be saved.
    	BL	(R4)
    	ADD	$16, RSP
    	B	restore
    
    nocgo:
    	MOVD	$0x800000, R0                     // stacksize = 8192KB
    	MOVD	$_rt0_arm64_netbsd_lib_go(SB), R1
    	MOVD	R0, 8(RSP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 01:28:43 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. src/runtime/rt0_linux_loong64.s

    	MOVV	$runtime·libpreinit(SB), R19
    	JAL	(R19)
    
    	// Create a new thread to do the runtime initialization and return.
    	MOVV	_cgo_sys_thread_create(SB), R19
    	BEQ	R19, nocgo
    	MOVV	$_rt0_loong64_linux_lib_go(SB), R4
    	MOVV	$0, R5
    	JAL	(R19)
    	JMP	restore
    
    nocgo:
    	MOVV	$0x800000, R4                     // stacksize = 8192KB
    	MOVV	$_rt0_loong64_linux_lib_go(SB), R5
    	MOVV	R4, 8(R3)
    	MOVV	R5, 16(R3)
    	MOVV	$runtime·newosproc0(SB), R19
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 15:50:43 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top