Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for startTheWorld (0.35 sec)

  1. src/runtime/export_debuglog_test.go

    	stw := stopTheWorld(stwForTestResetDebugLog)
    	for l := allDloggers; l != nil; l = l.allLink {
    		l.w.write = 0
    		l.w.tick, l.w.nano = 0, 0
    		l.w.r.begin, l.w.r.end = 0, 0
    		l.w.r.tick, l.w.r.nano = 0, 0
    	}
    	startTheWorld(stw)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 15 16:49:45 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top