Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for mspinning (0.16 sec)

  1. src/runtime/proc.go

    			wakep()
    		}
    	}
    }
    
    func resetspinning() {
    	gp := getg()
    	if !gp.m.spinning {
    		throw("resetspinning: not a spinning m")
    	}
    	gp.m.spinning = false
    	nmspinning := sched.nmspinning.Add(-1)
    	if nmspinning < 0 {
    		throw("findrunnable: negative nmspinning")
    	}
    	// M wakeup policy is deliberately somewhat conservative, so check if we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. src/sync/runtime.go

    func runtime_notifyListCheck(size uintptr)
    func init() {
    	var n notifyList
    	runtime_notifyListCheck(unsafe.Sizeof(n))
    }
    
    // Active spinning runtime support.
    // runtime_canSpin reports whether spinning makes sense at the moment.
    func runtime_canSpin(i int) bool
    
    // runtime_doSpin does active spinning.
    func runtime_doSpin()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. src/sync/atomic/value.go

    			runtime_procUnpin()
    			return
    		}
    		if typ == unsafe.Pointer(&firstStoreInProgress) {
    			// First store in progress. Wait.
    			// Since we disable preemption around the first store,
    			// we can wait with active spinning.
    			continue
    		}
    		// First store completed. Check type and overwrite data.
    		if typ != vlp.typ {
    			panic("sync/atomic: store of inconsistently typed value into Value")
    		}
    		StorePointer(&vp.data, vlp.data)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. src/sync/mutex_test.go

    }
    
    func BenchmarkMutexWorkSlack(b *testing.B) {
    	benchmarkMutex(b, true, true)
    }
    
    func BenchmarkMutexNoSpin(b *testing.B) {
    	// This benchmark models a situation where spinning in the mutex should be
    	// non-profitable and allows to confirm that spinning does not do harm.
    	// To achieve this we create excess of goroutines most of which do local work.
    	// These goroutines yield during local work, so that switching from
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 16 21:25:35 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     *
     * ## Warning: Certificate Pinning is Dangerous!
     *
     * Pinning certificates limits your server team's abilities to update their TLS certificates. By
     * pinning certificates, you take on additional operational complexity and limit your ability to
     * migrate between certificate authorities. Do not use certificate pinning without the blessing of
     * your server's TLS administrator!
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. internal/dsync/dsync_test.go

    	benchmarkMutex(b, true, true)
    }
    
    func BenchmarkMutexNoSpin(b *testing.B) {
    	b.ResetTimer()
    	b.ReportAllocs()
    
    	// This benchmark models a situation where spinning in the mutex should be
    	// non-profitable and allows to confirm that spinning does not do harm.
    	// To achieve this we create excess of goroutines most of which do local work.
    	// These goroutines yield during local work, so that switching from
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 11K bytes
    - Viewed (0)
  7. src/runtime/lock_futex.go

    	// its wakeup call.
    	wait := v
    
    	timer := &lockTimer{lock: l}
    	timer.begin()
    	// On uniprocessors, no point spinning.
    	// On multiprocessors, spin for ACTIVE_SPIN attempts.
    	spin := 0
    	if ncpu > 1 {
    		spin = active_spin
    	}
    	for {
    		// Try for lock, spinning.
    		for i := 0; i < spin; i++ {
    			for l.key == mutex_unlocked {
    				if atomic.Cas(key32(&l.key), mutex_unlocked, wait) {
    					timer.end()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go

    	c.FuzzNoCustom(obj)
    
    	// Pinning values for fields that get defaults if fuzz value is empty string or nil (thus making the round trip test fail)
    	obj.IgnorePreflightErrors = nil
    	obj.ImagePullSerial = ptr.To(true)
    }
    
    func fuzzClusterConfiguration(obj *kubeadm.ClusterConfiguration, c fuzz.Continue) {
    	c.FuzzNoCustom(obj)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 06:41:07 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

        val request =
          Request.Builder()
            .url(server.url("/"))
            .build()
        val call = client.newCall(request)
        assertFailsWith<SSLPeerUnverifiedException> {
          call.execute()
        }.also { expected ->
          // Certificate pinning fails!
          assertThat(expected.message!!).startsWith("Certificate pinning failure!")
        }
      }
    
      @Test
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. src/runtime/semasleep_test.go

    	"os/exec"
    	"syscall"
    	"testing"
    	"time"
    )
    
    // Issue #27250. Spurious wakeups to pthread_cond_timedwait_relative_np
    // shouldn't cause semasleep to retry with the same timeout which would
    // cause indefinite spinning.
    func TestSpuriousWakeupsNeverHangSemasleep(t *testing.T) {
    	if *flagQuick {
    		t.Skip("-quick")
    	}
    	t.Parallel() // Waits for a program to sleep for 1s.
    
    	exe, err := buildTestProg(t, "testprog")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 17:48:24 UTC 2023
    - 3.5K bytes
    - Viewed (0)
Back to top