Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for iscgo (0.11 sec)

  1. src/cmd/go/internal/work/gc.go

    			}
    			base := filepath.Base(path)
    			isGo := strings.HasSuffix(filename, ".go") || strings.HasSuffix(filename, ".s")
    			isCgo := cgoFiles[filename] || !isGo
    			overlayPath, isOverlay := fsys.OverlayPath(path)
    			if isCgo && isOverlay {
    				hasCgoOverlay = true
    			}
    			if !isCgo && isOverlay {
    				rewrite += overlayPath + "=>" + filepath.Join(rewriteDir, base) + ";"
    			} else if isCgo {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. src/runtime/signal_unix.go

    	switch sig {
    	case _SIGHUP, _SIGINT:
    		if atomic.Loaduintptr(&fwdSig[sig]) == _SIG_IGN {
    			return false
    		}
    	}
    
    	if (GOOS == "linux" || GOOS == "android") && !iscgo && sig == sigPerThreadSyscall {
    		// sigPerThreadSyscall is the same signal used by glibc for
    		// per-thread syscalls on Linux. We use it for the same purpose
    		// in non-cgo binaries.
    		return true
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modindex/read.go

    				p.Doc = synopsis
    			}
    		}
    
    		// Record Imports and information about cgo.
    		isCgo := false
    		imports := tf.imports()
    		for _, imp := range imports {
    			if imp.path == "C" {
    				if isTest {
    					badGoFile(name, fmt.Errorf("use of cgo in test %s not supported", name))
    					continue
    				}
    				isCgo = true
    			}
    		}
    		if directives := tf.cgoDirectives(); directives != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  4. src/runtime/os_darwin.go

    	var sa usigactiont
    	sa.sa_flags = _SA_SIGINFO | _SA_ONSTACK | _SA_RESTART
    	sa.sa_mask = ^uint32(0)
    	if fn == abi.FuncPCABIInternal(sighandler) { // abi.FuncPCABIInternal(sighandler) matches the callers in signal_unix.go
    		if iscgo {
    			fn = abi.FuncPCABI0(cgoSigtramp)
    		} else {
    			fn = abi.FuncPCABI0(sigtramp)
    		}
    	}
    	*(*uintptr)(unsafe.Pointer(&sa.__sigaction_u)) = fn
    	sigaction(i, &sa, nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. src/runtime/signal_windows.go

    	print("Exception ", hex(info.exceptioncode), " ", hex(info.exceptioninformation[0]), " ", hex(info.exceptioninformation[1]), " ", hex(r.ip()), "\n")
    
    	print("PC=", hex(r.ip()), "\n")
    	if g0.m.incgo && gp == g0.m.g0 && g0.m.curg != nil {
    		if iscgo {
    			print("signal arrived during external code execution\n")
    		}
    		gp = g0.m.curg
    	}
    	print("\n")
    
    	g0.m.throwing = throwTypeRuntime
    	g0.m.caughtsig.set(gp)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  6. src/runtime/os_linux.go

    		sa.sa_restorer = abi.FuncPCABI0(sigreturn__sigaction)
    	}
    	if fn == abi.FuncPCABIInternal(sighandler) { // abi.FuncPCABIInternal(sighandler) matches the callers in signal_unix.go
    		if iscgo {
    			fn = abi.FuncPCABI0(cgoSigtramp)
    		} else {
    			fn = abi.FuncPCABI0(sigtramp)
    		}
    	}
    	sa.sa_handler = fn
    	sigaction(i, &sa, nil)
    }
    
    //go:nosplit
    //go:nowritebarrierrec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  7. src/runtime/race.go

    }
    
    //go:nosplit
    func raceinit() (gctx, pctx uintptr) {
    	lockInit(&raceFiniLock, lockRankRaceFini)
    
    	// On most machines, cgo is required to initialize libc, which is used by race runtime.
    	if !iscgo && GOOS != "darwin" {
    		throw("raceinit: race build must use cgo")
    	}
    
    	racecall(&__tsan_init, uintptr(unsafe.Pointer(&gctx)), uintptr(unsafe.Pointer(&pctx)), abi.FuncPCABI0(racecallbackthunk), 0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/pe.go

    	//
    	// At thread start, in minit, the runtime queries the OS for
    	// the actual stack bounds so that the stack size doesn't need
    	// to be hard-coded into the runtime.
    	oh64.SizeOfStackReserve = 0x00200000
    	if !iscgo {
    		oh64.SizeOfStackCommit = 0x00001000
    	} else {
    		// TODO(brainman): Maybe remove optional header writing altogether for cgo.
    		// For cgo it is the external linker that is building final executable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  9. src/runtime/cgocall.go

    	// At this point we're about to call unlockOSThread.
    	// The following code must not change to a different m.
    	// This is enforced by checking incgo in the schedule function.
    	gp.m.incgo = true
    	unlockOSThread()
    
    	if gp.m.isextra {
    		gp.m.isExtraInC = true
    	}
    
    	if gp.m != checkm {
    		throw("m changed unexpectedly in cgocallbackg")
    	}
    
    	osPreemptExtEnter(gp.m)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  10. src/cmd/cgo/doc.go

    threads and thread-local storage. The runtime package declares a few
    variables:
    
    	var (
    		iscgo             bool
    		_cgo_init         unsafe.Pointer
    		_cgo_thread_start unsafe.Pointer
    	)
    
    Any package using cgo imports "runtime/cgo", which provides
    initializations for these variables. It sets iscgo to true, _cgo_init
    to a gcc-compiled function that can be called early during program
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
Back to top