Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for startTheWorld (0.61 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/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)
  7. 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)
  8. 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)
  9. 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)
  10. src/cmd/trace/testdata/go122.test

    String id=193
    	data="os.(*file).close"
    String id=194
    	data="os.(*File).Close"
    String id=195
    	data="net.(*file).close"
    String id=196
    	data="runtime.startTheWorld"
    String id=197
    	data="runtime.(*traceAdvancerState).start.func1"
    String id=198
    	data="syscall.getsockopt"
    String id=199
    	data="syscall.GetsockoptInt"
    String id=200
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 166K bytes
    - Viewed (0)
Back to top