Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for mayMoreStack (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/internal/obj/arm64/obj7.go

    		// not we need it.)
    		p = obj.Appendp(p, c.newprog)
    		p.As = AMOVD
    		p.From.Type = obj.TYPE_REG
    		p.From.Reg = REGCTXT
    		p.To.Type = obj.TYPE_MEM
    		p.To.Reg = REGSP
    		p.To.Offset = 8
    
    		// BL maymorestack
    		p = obj.Appendp(p, c.newprog)
    		p.As = ABL
    		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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 05:46:32 UTC 2023
    - 28.4K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/x86/obj6.go

    		if cursym.Func().Text.From.Sym.NeedCtxt() {
    			p = obj.Appendp(p, newprog)
    			p.As = push
    			p.From.Type = obj.TYPE_REG
    			p.From.Reg = REGCTXT
    		}
    
    		// We call maymorestack with an ABI matching the
    		// caller's ABI. Since this is the first thing that
    		// happens in the function, we have to be consistent
    		// with the caller about CPU state (notably,
    		// fixed-meaning registers).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:36:45 UTC 2023
    - 40.9K bytes
    - Viewed (0)
Back to top