Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for startTheWorld (0.14 sec)

  1. src/runtime/export_test.go

    	stw := stopTheWorld(stwForTestCountPagesInUse)
    
    	pagesInUse = mheap_.pagesInUse.Load()
    
    	for _, s := range mheap_.allspans {
    		if s.state.get() == mSpanInUse {
    			counted += s.npages
    		}
    	}
    
    	startTheWorld(stw)
    
    	return
    }
    
    func Fastrand() uint32          { return uint32(rand()) }
    func Fastrand64() uint64        { return rand() }
    func Fastrandn(n uint32) uint32 { return randn(n) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  2. src/runtime/os_linux.go

    	if GOARCH == "ppc64" || GOARCH == "ppc64le" {
    		// TODO(https://go.dev/issue/51192 ): ppc64 doesn't use r2.
    		r2 = 0
    	}
    	if errno != 0 {
    		releasem(getg().m)
    		allocmLock.unlock()
    		startTheWorld(stw)
    		return r1, r2, errno
    	}
    
    	perThreadSyscall = perThreadSyscallArgs{
    		trap: trap,
    		a1:   a1,
    		a2:   a2,
    		a3:   a3,
    		a4:   a4,
    		a5:   a5,
    		a6:   a6,
    		r1:   r1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  3. src/internal/trace/trace_test.go

    			}},
    			{trace.EventStateTransition, "Goroutine Running->Waiting", []frame{
    				{"time.Sleep", 0},
    				{"main.main", 0},
    			}},
    			{trace.EventMetric, "/sched/gomaxprocs:threads", []frame{
    				{"runtime.startTheWorld", 0}, // this is when the current gomaxprocs is logged.
    				{"runtime.startTheWorldGC", 0},
    				{"runtime.GOMAXPROCS", 0},
    				{"main.main", 0},
    			}},
    		}
    		if !stress {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. src/runtime/heapdump.go

    	systemstack(func() {
    		// Call readmemstats_m here instead of deeper in
    		// writeheapdump_m because we might blow the system stack
    		// otherwise.
    		readmemstats_m(&m)
    		writeheapdump_m(fd, &m)
    	})
    
    	startTheWorld(stw)
    }
    
    const (
    	fieldKindEol       = 0
    	fieldKindPtr       = 1
    	fieldKindIface     = 2
    	fieldKindEface     = 3
    	tagEOF             = 0
    	tagObject          = 1
    	tagOtherRoot       = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/runtime/mstats.go

    func ReadMemStats(m *MemStats) {
    	_ = m.Alloc // nil check test before we switch stacks, see issue 61158
    	stw := stopTheWorld(stwReadMemStats)
    
    	systemstack(func() {
    		readmemstats_m(m)
    	})
    
    	startTheWorld(stw)
    }
    
    // doubleCheckReadMemStats controls a double-check mode for ReadMemStats that
    // ensures consistency between the values that ReadMemStats is using and the
    // runtime-internal stats.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  6. src/runtime/trace.go

    	for _, pp := range allp {
    		tl.writer().writeProcStatusForP(pp, pp == tl.mp.p.ptr()).end()
    	}
    	traceRelease(tl)
    
    	unlock(&sched.sysmonlock)
    	startTheWorld(stw)
    
    	traceStartReadCPU()
    	traceAdvancer.start()
    
    	semrelease(&traceAdvanceSema)
    	return nil
    }
    
    // StopTrace stops tracing, if it was previously enabled.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  7. src/runtime/runtime2.go

    	// continues to use its P, even in _Pgcstop. Transitioning
    	// from _Prunning to _Pgcstop causes an M to release its P and
    	// park.
    	//
    	// The P retains its run queue and startTheWorld will restart
    	// the scheduler on Ps with non-empty run queues.
    	_Pgcstop
    
    	// _Pdead means a P is no longer used (GOMAXPROCS shrank). We
    	// reuse Ps if GOMAXPROCS increases. A dead P is mostly
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  8. src/internal/trace/testdata/tests/go122-annotations-stress.test

    String id=129
    	data="main.do.func1.1.1"
    String id=130
    	data="time.Sleep"
    String id=131
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/time.go"
    String id=132
    	data="runtime.startTheWorld"
    String id=133
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/proc.go"
    String id=134
    	data="runtime.StartTrace"
    String id=135
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 38.3K bytes
    - Viewed (0)
Back to top