Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 67 for allgs (0.04 sec)

  1. src/runtime/runtime_test.go

    	// Count goroutines with a large allgs list
    	b.Run("large-nil", run(func() bool {
    		GoroutineProfile(nil)
    		return true
    	}))
    
    	n = NumGoroutine()
    	p = make([]StackRecord, 2*n+2*GOMAXPROCS(0))
    	b.Run("large", run(func() bool {
    		_, ok := GoroutineProfile(p)
    		return ok
    	}))
    
    	close(ch)
    	done.Wait()
    
    	// Count goroutines with a large (but unused) allgs list
    	b.Run("sparse-nil", run(func() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/runtime/runtime-gdb.py

    	def invoke(self, _arg, _from_tty):
    		# args = gdb.string_to_argv(arg)
    		vp = gdb.lookup_type('void').pointer()
    		for ptr in SliceValue(gdb.parse_and_eval("'runtime.allgs'")):
    			if ptr['atomicstatus']['value'] == G_DEAD:
    				continue
    			s = ' '
    			if ptr['m']:
    				s = '*'
    			pc = ptr['sched']['pc'].cast(vp)
    			pc = pc_to_int(pc)
    			blk = gdb.block_for_pc(pc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  3. src/runtime/proc.go

    	// cannot happen concurrently with this. allgs grows
    	// monotonically and existing entries never change, so we can
    	// simply return a copy of the slice header. For added safety,
    	// we trim everything past len because that can still change.
    	return allgs[:len(allgs):len(allgs)]
    }
    
    // atomicAllG returns &allgs[0] and len(allgs) for use with atomicAllGIndex.
    func atomicAllG() (**g, uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  4. src/runtime/mgc.go

    	}
    
    	if debug.gccheckmark > 0 {
    		// This is expensive when there's a large number of
    		// Gs, so only do it if checkmark is also enabled.
    		gcMarkRootCheck()
    	}
    
    	// Drop allg snapshot. allgs may have grown, in which case
    	// this is the only reference to the old backing store and
    	// there's no need to keep it around.
    	work.stackRoots = nil
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  5. src/runtime/mprof.go

    	}
    	ourg.goroutineProfiled.Store(goroutineProfileSatisfied)
    	goroutineProfile.offset.Store(1)
    
    	// Prepare for all other goroutines to enter the profile. Aside from ourg,
    	// every goroutine struct in the allgs list has its goroutineProfiled field
    	// cleared. Any goroutine created from this point on (while
    	// goroutineProfile.active is set) will start with its goroutineProfiled
    	// field set to goroutineProfileSatisfied.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  6. src/runtime/pprof/pprof_test.go

    					// the work involved in collecting a goroutine profile,
    					// which is O(N) with the high-water mark of the number of
    					// goroutines in this process (in the allgs slice).
    					runtime.Gosched()
    				}
    				if i == 0 {
    					ready.Done()
    				}
    			}
    		}()
    
    		// Short-lived goroutines exercise different code paths (goroutines with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  7. src/runtime/runtime2.go

    // so that it does not require write barriers at all.
    //
    // Goroutine structs are published in the allg list and never freed.
    // That will keep the goroutine structs from being collected.
    // There is never a time that Gobuf.g's contain the only references
    // to a goroutine: the publishing of the goroutine in allg comes first.
    // Goroutine pointers are also kept in non-GC-visible places like TLS,
    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. docs/de/docs/features.md

    ### Kompakt
    
    Es gibt für alles sensible **Defaultwerte**, mit optionaler Konfiguration überall. Alle Parameter können feinjustiert werden, damit sie tun, was Sie benötigen, und die API definieren, die Sie brauchen.
    
    Aber standardmäßig **„funktioniert einfach alles“**.
    
    ### Validierung
    
    * Validierung für die meisten (oder alle?) Python-**Datentypen**, hierzu gehören:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 19:43:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/advanced-dependencies.md

        ```
    
    !!! tip "Tipp"
        Das alles mag gekünstelt wirken. Und es ist möglicherweise noch nicht ganz klar, welchen Nutzen das hat.
    
        Diese Beispiele sind bewusst einfach gehalten, zeigen aber, wie alles funktioniert.
    
        In den Kapiteln zum Thema Sicherheit gibt es Hilfsfunktionen, die auf die gleiche Weise implementiert werden.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:18:49 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. test/alg.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file tests that required algs are generated,
    // even when similar types have been marked elsewhere
    // as not needing algs. See CLs 19769 and 19770.
    
    package main
    
    import "fmt"
    
    //go:noinline
    func f(m map[[8]string]int) int {
    	var k [8]string
    	return m[k]
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 24 21:36:52 UTC 2016
    - 822 bytes
    - Viewed (0)
Back to top