Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for morestackc (0.21 sec)

  1. src/runtime/stack.go

    stack overflow (morestack).
    
    For example, deferproc might call malloc, which does one of the
    above checks (without allocating a full frame), which might trigger
    a call to morestack.  This sequence needs to fit in the bottom
    section of the stack.  On amd64, morestack's frame is 40 bytes, and
    deferproc's frame is 56 bytes.  That fits well within the
    StackGuard - StackSmall bytes at the bottom.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/ppc64/obj9.go

    	var morestacksym *obj.LSym
    	if c.cursym.CFunc() {
    		morestacksym = c.ctxt.Lookup("runtime.morestackc")
    	} else if !c.cursym.Func().Text.From.Sym.NeedCtxt() {
    		morestacksym = c.ctxt.Lookup("runtime.morestack_noctxt")
    	} else {
    		morestacksym = c.ctxt.Lookup("runtime.morestack")
    	}
    
    	if NeedTOCpointer(c.ctxt) {
    		// In PPC64 PIC code, R2 is used as TOC pointer derived from R12
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  3. src/runtime/runtime2.go

    	// stackguard1 is the stack pointer compared in the //go:systemstack stack growth prologue.
    	// It is stack.lo+StackGuard on g0 and gsignal stacks.
    	// It is ~0 on other goroutine stacks, to trigger a call to morestackc (and crash).
    	stack       stack   // offset known to runtime/cgo
    	stackguard0 uintptr // offset known to liblink
    	stackguard1 uintptr // offset known to liblink
    
    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/asm_loong64.s

    	// should never return
    	JAL	runtime·abort(SB)
    	UNDEF
    
    /*
     * support for morestack
     */
    
    // Called during function prolog when more stack is needed.
    // Caller has already loaded:
    // loong64: R31: LR
    //
    // The traceback routines see morestack on a g0 as being
    // the top of a stack (for example, morestack calling newstack
    // calling the scheduler calling newm calling gc), so we must
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  5. src/runtime/gc_test.go

    	// Move the stack repeatedly to make sure we're not doubling
    	// it each time.
    	for i := 0; i < 100; i++ {
    		runtime.GCTestMoveStackOnNextCall()
    		moveStack1(false)
    	}
    }
    
    //go:noinline
    func moveStack1(x bool) {
    	// Make sure this function doesn't get auto-nosplit.
    	if x {
    		println("x")
    	}
    }
    
    func TestGCTestIsReachable(t *testing.T) {
    	var all, half []unsafe.Pointer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/runtime/preempt.go

    		// here we'll see a seemingly self-recursive call, which is in
    		// fact not.
    		// This is normally ok, as we use the return address saved on
    		// stack for unwinding, not the LR value. But if this is a
    		// call to morestack, we haven't created the frame, and we'll
    		// use the LR for unwinding, which will be bad.
    		return false, 0
    	}
    	up, startpc := pcdatavalue2(f, abi.PCDATA_UnsafePoint, pc)
    	if up == abi.UnsafePointUnsafe {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  7. src/runtime/asm_ppc64x.s

    	// should never return
    	CALL	runtime·abort(SB)
    	UNDEF
    
    /*
     * support for morestack
     */
    
    // Called during function prolog when more stack is needed.
    // Caller has already loaded:
    // R3: framesize, R4: argsize, R5: LR
    //
    // The traceback routines see morestack on a g0 as being
    // the top of a stack (for example, morestack calling newstack
    // calling the scheduler calling newm calling gc), so we must
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 45.4K bytes
    - Viewed (0)
  8. src/runtime/stubs.go

    // these functions, which is in
    // cmd/compile/internal/devirtualize/pgo.maybeDevirtualizeFunctionCall.
    func getclosureptr() uintptr
    
    //go:noescape
    func asmcgocall(fn, arg unsafe.Pointer) int32
    
    func morestack()
    
    // morestack_noctxt should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/cloudwego/frugal
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  9. src/runtime/crash_test.go

    		cmd.Env = append(cmd.Env, "TEST_G0_STACK_OVERFLOW=1")
    		out, err := cmd.CombinedOutput()
    		t.Logf("output:\n%s", out)
    		// Don't check err since it's expected to crash.
    		if n := strings.Count(string(out), "morestack on g0\n"); n != 1 {
    			t.Fatalf("%s\n(exit status %v)", out, err)
    		}
    		if runtime.CrashStackImplemented {
    			// check for a stack trace
    			want := "runtime.stackOverflow"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/asm.go

    		next++
    	}
    
    	// Issue an error if we see a function defined as ABIInternal
    	// without NOSPLIT. In ABIInternal, obj needs to know the function
    	// signature in order to construct the morestack path, so this
    	// currently isn't supported for asm functions.
    	if nameAddr.Sym.ABI() == obj.ABIInternal && flag&obj.NOSPLIT == 0 {
    		p.errorf("TEXT %q: ABIInternal requires NOSPLIT", name)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top