Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for morestackc (0.36 sec)

  1. 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)
  2. src/cmd/internal/obj/riscv/obj.go

    	}
    
    	// Spill the register args that could be clobbered by the
    	// morestack code
    	p = ctxt.EmitEntryStackMap(cursym, p, newprog)
    	p = cursym.Func().SpillRegisterArgs(p, newprog)
    
    	// CALL runtime.morestack(SB)
    	p = obj.Appendp(p, newprog)
    	p.As = obj.ACALL
    	p.To.Type = obj.TYPE_BRANCH
    
    	if cursym.CFunc() {
    		p.To.Sym = ctxt.Lookup("runtime.morestackc")
    	} else if !cursym.Func().Text.From.Sym.NeedCtxt() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 07 03:32:27 UTC 2024
    - 77K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/wasm/wasmobj.go

    	// call to maymorestack *before* processing resume points so
    	// we can construct a resume point after maymorestack for
    	// morestack to resume at.
    	var pMorestack = s.Func().Text
    	if needMoreStack && ctxt.Flag_maymorestack != "" {
    		p := pMorestack
    
    		// Save REGCTXT on the stack.
    		const tempFrame = 8
    		p = appendp(p, AGet, regAddr(REG_SP))
    		p = appendp(p, AI32Const, constAddr(tempFrame))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/stackcheck.go

    		}
    		if height > maxHeight {
    			maxHeight = height
    		}
    	}
    
    	if !ldr.IsNoSplit(sym) {
    		// Splittable functions start with a call to
    		// morestack, after which their height is 0. Account
    		// for the height of the call to morestack.
    		addEdge(sc.callSize, sc.morestack)
    		return maxHeight, edges
    	}
    
    	// This function is nosplit, so it adjusts SP without a split
    	// check.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 16:49:08 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. test/maymorestack.go

    	}
    }
    
    //go:noinline
    func anotherFunc(n int) {
    	// Trigger a stack growth on at least some calls to
    	// anotherFunc to test that mayMoreStack is called outside the
    	// morestack loop. It's also important that it is called
    	// before (not after) morestack, but that's hard to test.
    	var x [1 << 10]byte
    
    	if n > 1 {
    		anotherFunc(n - 1)
    	}
    
    	runtime.KeepAlive(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 00:52:06 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. test/abi/bad_internal_offsets.go

    }
    
    type StructF0S1 struct {
    	_ uint16
    }
    
    // 0 returns 3 params
    //go:registerparams
    //go:noinline
    func Test0(p0 uint32, p1 StructF0S0, p2 int32) {
    	// consume some stack space, so as to trigger morestack
    	var pad [256]uint64
    	pad[FailCount]++
    	if p0 == 0 {
    		return
    	}
    	p1f0c := int16(-3096)
    	if p1.F0 != p1f0c {
    		NoteFailureElem(0, "genChecker0", "parm", 1, 0, pad[0])
    		return
    	}
    	p1f1c := "f6ꂅ8ˋ<"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. src/cmd/internal/objabi/funcid.go

    	"gopanic":            abi.FuncID_gopanic,
    	"handleAsyncEvent":   abi.FuncID_handleAsyncEvent,
    	"main":               abi.FuncID_runtime_main,
    	"mcall":              abi.FuncID_mcall,
    	"morestack":          abi.FuncID_morestack,
    	"mstart":             abi.FuncID_mstart,
    	"panicwrap":          abi.FuncID_panicwrap,
    	"runfinq":            abi.FuncID_runfinq,
    	"sigpanic":           abi.FuncID_sigpanic,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 21:33:59 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_solaris_amd64.c

    	// See golang.org/issue/12210.
    	if(ctx.uc_stack.ss_size < 1024*1024)
    		g->stacklo -= 1024*1024 - ctx.uc_stack.ss_size;
    
    	// Sanity check the results now, rather than getting a
    	// morestack on g0 crash.
    	if (g->stacklo >= g->stackhi) {
    		fatalf("bad stack bounds: lo=%p hi=%p", (void*)(g->stacklo), (void*)(g->stackhi));
    	}
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  9. src/runtime/asm_wasm.s

    	CALL
    
    	// should never return
    	CALL	runtime·abort(SB)
    	UNDEF
    
    // Called during function prolog when more stack is needed.
    //
    // 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
    // record an argument size. For that purpose, it has no arguments.
    TEXT runtime·morestack(SB), NOSPLIT, $0-0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 21:26:51 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  10. src/runtime/traceback_test.go

    	}
    	return n
    }
    
    // nosplit to avoid preemption or morestack spilling registers.
    //
    //go:nosplit
    //go:noinline
    func testTracebackArgs10(a, b, c, d, e int32) int {
    	// no use of any args
    	return runtime.Stack(testTracebackArgsBuf[:], false)
    }
    
    // norace to avoid race instrumentation changing spill locations.
    // nosplit to avoid preemption or morestack spilling registers.
    //
    //go:norace
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
Back to top