Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for growstack (0.12 sec)

  1. src/runtime/stack_test.go

    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		start := time.Now()
    		growStack(nil)
    		growDuration = time.Since(start)
    	}()
    	wg.Wait()
    	t.Log("first growStack took", growDuration)
    
    	// in locked goroutine
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		LockOSThread()
    		growStack(nil)
    		UnlockOSThread()
    	}()
    	wg.Wait()
    
    	// in finalizer
    	var finalizerStart time.Time
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/testx.go

    //export issue7978cb
    func issue7978cb() {
    	// Force a stack growth from the callback to put extra
    	// pressure on the runtime. See issue #17785.
    	growStack(64)
    	issue7978wait(3, 4)
    }
    
    func growStack(n int) int {
    	var buf [128]int
    	if n == 0 {
    		return 0
    	}
    	return buf[growStack(n-1)]
    }
    
    func issue7978go() {
    	C.issue7978c((*C.uint32_t)(&issue7978sync))
    	issue7978wait(7, 8)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. src/internal/trace/traceviewer/emitter.go

    		Time:  viewerTime(a.Start),
    		Stack: a.FromStack,
    	})
    	e.OptionalEvent(&format.Event{
    		Name:  a.Name,
    		Phase: "t",
    		TID:   a.ToResource,
    		PID:   sectionID,
    		ID:    e.arrowSeq,
    		Time:  viewerTime(a.End),
    	})
    }
    
    type ArrowEvent struct {
    	Name         string
    	Start        time.Duration
    	End          time.Duration
    	FromResource uint64
    	FromStack    int
    	ToResource   uint64
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 21:29:58 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  4. src/cmd/trace/gstate.go

    			Name:         gs.startCause.name,
    			Start:        ctx.elapsed(gs.startCause.time),
    			End:          ctx.elapsed(ts),
    			FromResource: uint64(gs.startCause.resource),
    			ToResource:   uint64(resource),
    			FromStack:    ctx.Stack(viewerFrames(gs.startCause.stack)),
    		})
    		gs.startCause.time = 0
    		gs.startCause.name = ""
    		gs.startCause.resource = 0
    		gs.startCause.stack = trace.NoStack
    	}
    	gs.executing = resource
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. src/cmd/trace/gen.go

    			Name:         "newTask",
    			Start:        ctx.elapsed(task.Start.Time()),
    			End:          ctx.elapsed(task.Start.Time()),
    			FromResource: uint64(task.Parent.ID),
    			ToResource:   uint64(task.ID),
    			FromStack:    ctx.Stack(viewerFrames(task.Start.Stack())),
    		})
    	}
    }
    
    // emitRegion emits goroutine-based slice events to the UI. The caller
    // must be emitting for a goroutine-oriented trace.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. src/runtime/runtime2.go

    	lockedInt     uint32      // tracking for internal lockOSThread
    	nextwaitm     muintptr    // next m waiting for lock
    
    	mLockProfile mLockProfile // fields relating to runtime.lock contention
    	profStack    []uintptr    // used for memory/block/mutex stack traces
    
    	// wait* are used to carry arguments from gopark into park_m, because
    	// there's no stack to put them on. That is their sole purpose.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top