Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for switches$ (0.17 sec)

  1. src/runtime/coro.go

    	mcall(coroswitch_m)
    }
    
    //go:linkname coroswitch
    
    // coroswitch switches to the goroutine blocked on c
    // and then blocks the current goroutine on c.
    func coroswitch(c *coro) {
    	gp := getg()
    	gp.coroarg = c
    	mcall(coroswitch_m)
    }
    
    // coroswitch_m is the implementation of coroswitch
    // that runs on the m stack.
    //
    // Note: Coroutine switches are expected to happen at
    // an order of magnitude (or more) higher frequency
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. src/sync/mutex.go

    	// already running on CPU and there can be lots of them, so a woken up
    	// waiter has good chances of losing. In such case it is queued at front
    	// of the wait queue. If a waiter fails to acquire the mutex for more than 1ms,
    	// it switches mutex to the starvation mode.
    	//
    	// In starvation mode ownership of the mutex is directly handed off from
    	// the unlocking goroutine to the waiter at the front of the queue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/iter-pull.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests coroutine switches.
    
    //go:build ignore
    
    package main
    
    import (
    	"iter"
    	"log"
    	"os"
    	"runtime/trace"
    	"sync"
    )
    
    func main() {
    	// Start tracing.
    	if err := trace.Start(os.Stdout); err != nil {
    		log.Fatalf("failed to start tracing: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. src/runtime/iface.go

    	m.Inter = inter
    	m.Type = typ
    	// The hash is used in type switches. However, compiler statically generates itab's
    	// for all interface/type pairs used in switches (which are added to itabTable
    	// in itabsinit). The dynamically-generated itab's never participate in type switches,
    	// and thus the hash is irrelevant.
    	// Note: m.Hash is _not_ the hash used for the runtime itabTable hash table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  5. src/runtime/cgocall.go

    //
    // runtime.cgocall (below) calls entersyscall so as not to block
    // other goroutines or the garbage collector, and then calls
    // runtime.asmcgocall(_cgo_Cfunc_f, frame).
    //
    // runtime.asmcgocall (in asm_$GOARCH.s) switches to the m->g0 stack
    // (assumed to be an operating system-allocated stack, so safe to run
    // gcc-compiled code on) and calls _cgo_Cfunc_f(frame).
    //
    // _cgo_Cfunc_f invokes the actual C function f with arguments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/running-builds/introduction/gradle_optimizations.adoc

    If a developer continuously changes a single file, there is likely no need to rebuild all the other files in the project.
    
    However, what happens when the same developer switches to a new branch created last week?
    The files are rebuilt, even though the developer is building something that has been built before.
    
    This is where a *build cache* is helpful.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 09:28:20 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. src/runtime/stubs.go

    // systemstack calls fn directly and returns.
    // Otherwise, systemstack is being called from the limited stack
    // of an ordinary goroutine. In this case, systemstack switches
    // to the per-OS-thread stack, calls fn, and switches back.
    // It is common to use a func literal as the argument, in order
    // to share inputs and outputs with the code around the call
    // to system stack:
    //
    //	... set up y ...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/structural.go

    type Extensions struct {
    	// x-kubernetes-preserve-unknown-fields stops the API server
    	// decoding step from pruning fields which are not specified
    	// in the validation schema. This affects fields recursively,
    	// but switches back to normal pruning behaviour if nested
    	// properties or additionalProperties are specified in the schema.
    	// False means that the pruning behaviour is inherited from the parent.
    	// False does not mean to activate pruning.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. src/runtime/race_s390x.s

    // are no arguments.
    TEXT	runtime·racecall(SB), NOSPLIT, $0-0
    	MOVD	fn+0(FP), R1
    	MOVD	arg0+8(FP), R2
    	MOVD	arg1+16(FP), R3
    	MOVD	arg2+24(FP), R4
    	MOVD	arg3+32(FP), R5
    	JMP	racecall<>(SB)
    
    // Switches SP to g0 stack and calls R1. Arguments are already set.
    TEXT	racecall<>(SB), NOSPLIT, $0-0
    	BL	runtime·save_g(SB)		// Save g for callbacks.
    	MOVD	R15, R7				// Save SP.
    	MOVD	g_m(g), R8			// R8 = thread.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func panicdottypeE(have, want, iface *byte)
    func panicdottypeI(have, want, iface *byte)
    func panicnildottype(want *byte)
    func typeAssert(s *byte, typ *byte) *byte
    
    // interface switches
    func interfaceSwitch(s *byte, t *byte) (int, *byte)
    
    // interface equality. Type/itab pointers are already known to be equal, so
    // we only need to pass one.
    func ifaceeq(tab *uintptr, x, y unsafe.Pointer) (ret bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top