Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for mayMoreStack (0.17 sec)

  1. test/maymorestack.go

    // run -gcflags=-d=maymorestack=main.mayMoreStack
    
    // Copyright 2021 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.
    
    // Test the maymorestack testing hook by injecting a hook that counts
    // how many times it is called and checking that count.
    
    package main
    
    import "runtime"
    
    var count uint32
    
    //go:nosplit
    func mayMoreStack() {
    	count++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 00:52:06 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. src/runtime/debug.go

    }
    
    // mayMoreStackPreempt is a maymorestack hook that forces a preemption
    // at every possible cooperative preemption point.
    //
    // This is valuable to apply to the runtime, which can be sensitive to
    // preemption points. To apply this to all preemption points in the
    // runtime and runtime-like code, use the following in bash or zsh:
    //
    //	X=(-{gc,asm}flags={runtime/...,reflect,sync}=-d=maymorestack=runtime.mayMoreStackPreempt) GOFLAGS=${X[@]}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/flags/flags.go

    	Importpath = flag.String("p", obj.UnlinkablePkg, "set expected package import to path")
    	Spectre    = flag.String("spectre", "", "enable spectre mitigations in `list` (all, ret)")
    )
    
    var DebugFlags struct {
    	MayMoreStack string `help:"call named function before all stack growth checks"`
    	PCTab        string `help:"print named pc-value table\nOne of: pctospadj, pctofile, pctoline, pctoinline, pctopcdata"`
    }
    
    var (
    	D        MultiFlag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:23 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/cmd/asm/main.go

    	ctxt.Debugvlog = flags.DebugV
    	ctxt.Flag_dynlink = *flags.Dynlink
    	ctxt.Flag_linkshared = *flags.Linkshared
    	ctxt.Flag_shared = *flags.Shared || *flags.Dynlink
    	ctxt.Flag_maymorestack = flags.DebugFlags.MayMoreStack
    	ctxt.Debugpcln = flags.DebugFlags.PCTab
    	ctxt.IsAsm = true
    	ctxt.Pkgpath = *flags.Importpath
    	switch *flags.Spectre {
    	default:
    		log.Printf("unknown setting -spectre=%s", *flags.Spectre)
    		os.Exit(2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/wasm/wasmobj.go

    	// generated function.
    	needMoreStack := framesize > 0 && !s.Func().Text.From.Sym.NoSplit()
    
    	// If the maymorestack debug option is enabled, insert the
    	// 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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/x86/seh.go

    		// SEH unwind information don't support prologues that are more than 255 bytes long.
    		// These are very rare, but still possible, e.g., when compiling functions with many
    		// parameters with -gcflags=-d=maymorestack=runtime.mayMoreStackPreempt.
    		// Return without reporting an error.
    		return
    	}
    
    	// Reference:
    	// https://learn.microsoft.com/en-us/cpp/build/exception-handling-x64#struct-unwind_info
    
    	const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 14:41:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. src/cmd/dist/test.go

    	// already quite long and mayMoreStackMove makes it about
    	// twice as slow.
    	if !t.compileOnly && !t.short {
    		// hooks is the set of maymorestack hooks to test with.
    		hooks := []string{"mayMoreStackPreempt", "mayMoreStackMove"}
    		// hookPkgs is the set of package patterns to apply
    		// the maymorestack hook to.
    		hookPkgs := []string{"runtime/...", "reflect", "sync"}
    		// unhookPkgs is the set of package patterns to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/ppc64/obj9.go

    	if c.ctxt.Flag_maymorestack != "" {
    		if c.ctxt.Flag_shared || c.ctxt.Flag_dynlink {
    			// See the call to morestack for why these are
    			// complicated to support.
    			c.ctxt.Diag("maymorestack with -shared or -dynlink is not supported")
    		}
    
    		// Spill arguments. This has to happen before we open
    		// any more frame space.
    		p = c.cursym.Func().SpillRegisterArgs(p, c.newprog)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/loong64/obj.go

    		p = obj.Appendp(p, c.newprog)
    		p.As = add
    		p.From.Type = obj.TYPE_CONST
    		p.From.Offset = int64(-frameSize)
    		p.To.Type = obj.TYPE_REG
    		p.To.Reg = REGSP
    		p.Spadj = int32(frameSize)
    
    		// JAL	maymorestack
    		p = obj.Appendp(p, c.newprog)
    		p.As = AJAL
    		p.To.Type = obj.TYPE_BRANCH
    		// See ../x86/obj6.go
    		p.To.Sym = c.ctxt.LookupABI(c.ctxt.Flag_maymorestack, c.cursym.ABI())
    		p.Mark |= BRANCH
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:22:18 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/arm/obj5.go

    		// MOVW REGCTXT, 4(SP)
    		p = obj.Appendp(p, c.newprog)
    		p.As = AMOVW
    		p.From.Type = obj.TYPE_REG
    		p.From.Reg = REGCTXT
    		p.To.Type = obj.TYPE_MEM
    		p.To.Offset = 4
    		p.To.Reg = REGSP
    
    		// CALL maymorestack
    		p = obj.Appendp(p, c.newprog)
    		p.As = obj.ACALL
    		p.To.Type = obj.TYPE_BRANCH
    		// See ../x86/obj6.go
    		p.To.Sym = c.ctxt.LookupABI(c.ctxt.Flag_maymorestack, c.cursym.ABI())
    
    		// Restore REGCTXT and LR.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 21.4K bytes
    - Viewed (0)
Back to top