Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for writeErrStr (0.47 sec)

  1. src/runtime/os_darwin.go

    	var attr pthreadattr
    	var err int32
    	err = pthread_attr_init(&attr)
    	if err != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    
    	// Find out OS stack size for our own stack guard.
    	var stacksize uintptr
    	if pthread_attr_getstacksize(&attr, &stacksize) != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    	mp.g0.stack.hi = stacksize // for mstart
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  2. src/runtime/runtime.go

    	unsetenv_c(key)
    	if key == "GODEBUG" {
    		godebugEnv.Store(nil)
    		godebugNotify(true)
    	}
    }
    
    // writeErrStr writes a string to descriptor 2.
    // If SetCrashOutput(f) was called, it also writes to f.
    //
    //go:nosplit
    func writeErrStr(s string) {
    	writeErrData(unsafe.StringData(s), int32(len(s)))
    }
    
    // writeErrData is the common parts of writeErr{,Str}.
    //
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. src/runtime/os_freebsd.go

    }
    
    // Version of newosproc that doesn't require a valid G.
    //
    //go:nosplit
    func newosproc0(stacksize uintptr, fn unsafe.Pointer) {
    	stack := sysAlloc(stacksize, &memstats.stacks_sys)
    	if stack == nil {
    		writeErrStr(failallocatestack)
    		exit(1)
    	}
    	// This code "knows" it's being called once from the library
    	// initialization code, and so it's using the static m0 for the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  4. src/runtime/os_linux.go

    //go:nosplit
    func newosproc0(stacksize uintptr, fn unsafe.Pointer) {
    	stack := sysAlloc(stacksize, &memstats.stacks_sys)
    	if stack == nil {
    		writeErrStr(failallocatestack)
    		exit(1)
    	}
    	ret := clone(cloneFlags, unsafe.Pointer(uintptr(stack)+stacksize), nil, nil, fn)
    	if ret < 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    }
    
    const (
    	_AT_NULL     = 0  // End of vector
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  5. src/runtime/stubs.go

    //	... set up y ...
    //	systemstack(func() {
    //		x = bigcall(y)
    //	})
    //	... use x ...
    //
    //go:noescape
    func systemstack(fn func())
    
    //go:nosplit
    //go:nowritebarrierrec
    func badsystemstack() {
    	writeErrStr("fatal: systemstack called from unexpected goroutine")
    }
    
    // memclrNoHeapPointers clears n bytes starting at ptr.
    //
    // Usually you should use typedmemclr. memclrNoHeapPointers should be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  6. src/runtime/signal_unix.go

    	if !iscgo && !cgoHasExtraM {
    		// There is no extra M. needm will not be able to grab
    		// an M. Instead of hanging, just crash.
    		// Cannot call split-stack function as there is no G.
    		writeErrStr("fatal: bad g in signal handler\n")
    		exit(2)
    		*(*uintptr)(unsafe.Pointer(uintptr(123))) = 2
    	}
    	needm(true)
    	if !sigsend(uint32(sig)) {
    		// A foreign thread received the signal sig, and the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top