Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for startTheWorld (0.17 sec)

  1. src/runtime/debug.go

    	}
    
    	lock(&sched.lock)
    	ret := int(gomaxprocs)
    	unlock(&sched.lock)
    	if n <= 0 || n == ret {
    		return ret
    	}
    
    	stw := stopTheWorldGC(stwGOMAXPROCS)
    
    	// newprocs will be processed by startTheWorld
    	newprocs = int32(n)
    
    	startTheWorldGC(stw)
    	return ret
    }
    
    // NumCPU returns the number of logical CPUs usable by the current process.
    //
    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/runtime/mprof.go

    		if readgstatus(fing) != _Gdead && !isSystemGoroutine(fing, false) {
    			doRecordGoroutineProfile(fing, pcbuf)
    		}
    	}
    	startTheWorld(stw)
    
    	// Visit each goroutine that existed as of the startTheWorld call above.
    	//
    	// New goroutines may not be in this list, but we didn't want to know about
    	// them anyway. If they do appear in this list (via reusing a dead goroutine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/tests/go122-annotations.test

    String id=48
    	data="sync.(*WaitGroup).Done"
    String id=49
    	data="runtime.traceStartReadCPU"
    String id=50
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/trace2cpu.go"
    String id=51
    	data="runtime.startTheWorld"
    String id=52
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/proc.go"
    String id=53
    	data="runtime/trace.(*Task).End"
    String id=54
    	data="runtime.traceLocker.Gomaxprocs"
    String id=55
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/runtime/proc.go

    		casgstatus(gp, _Gwaiting, _Grunning)
    	})
    	return stopTheWorldContext
    }
    
    // startTheWorld undoes the effects of stopTheWorld.
    //
    // w must be the worldStop returned by stopTheWorld.
    func startTheWorld(w worldStop) {
    	systemstack(func() { startTheWorldWithSema(0, w) })
    
    	// worldsema must be held over startTheWorldWithSema to ensure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top