Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 271 for defBlock (0.15 sec)

  1. src/cmd/go/go_unix_test.go

    }
    
    // TestTestInterrupt verifies the fix for issue #60203.
    //
    // If the whole process group for a 'go test' invocation receives
    // SIGINT (as would be sent by pressing ^C on a console),
    // it should return quickly, not deadlock.
    func TestTestInterrupt(t *testing.T) {
    	if testing.Short() {
    		t.Skipf("skipping in short mode: test executes many subprocesses")
    	}
    	// Don't run this test in parallel, for the same reason.
    
    	tg := testgo(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/runtime/rwmutex_test.go

    }
    
    func TestParallelRWMutexReaders(t *testing.T) {
    	if GOARCH == "wasm" {
    		t.Skip("wasm has no threads yet")
    	}
    	defer GOMAXPROCS(GOMAXPROCS(-1))
    	// If runtime triggers a forced GC during this test then it will deadlock,
    	// since the goroutines can't be stopped/preempted.
    	// Disable GC for this test (see issue #10958).
    	defer debug.SetGCPercent(debug.SetGCPercent(-1))
    	// SetGCPercent waits until the mark phase is over, but the runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 22:00:45 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/projectmodule/ProjectArtifactResolver.java

            // This is not thread-safe because of lock juggling that happens for project state. When calculating the dependencies for an IDEA model, we can easily
            // deadlock when there are multiple projects that need to be locked at the same time.
            ResolvableArtifact resolvableArtifact = allResolvedArtifacts.get(artifact.getId());
            if (resolvableArtifact == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. test/typeparam/typelist.go

    func _[T interface{ ~*int }](p T) int {
    	return *p
    }
    
    // Channel send and receive on a generic type which has a channel as core type.
    func _[T interface{ ~chan int }](ch T) int {
    	// This would deadlock if executed (but ok for a compile test)
    	ch <- 0
    	return <-ch
    }
    
    // Calling of a generic type which has a function as core type.
    func _[T interface{ ~func() }](f T) {
    	f()
    	go f()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    public final class InterruptibleTaskTest extends TestCase {
    
      // Regression test for a deadlock where a task could be stuck busy waiting for the task to
      // transition to DONE
      public void testInterruptThrows() throws Exception {
        final CountDownLatch isInterruptibleRegistered = new CountDownLatch(1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    public final class InterruptibleTaskTest extends TestCase {
    
      // Regression test for a deadlock where a task could be stuck busy waiting for the task to
      // transition to DONE
      public void testInterruptThrows() throws Exception {
        final CountDownLatch isInterruptibleRegistered = new CountDownLatch(1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. src/syscall/tables_wasip1.go

    	ECHILD:          "No child processes",
    	ECONNABORTED:    "Connection aborted",
    	ECONNREFUSED:    "Connection refused",
    	ECONNRESET:      "Connection reset by peer",
    	EDEADLK:         "Deadlock condition",
    	EDESTADDRREQ:    "Destination address required",
    	EDOM:            "Math arg out of domain of func",
    	EDQUOT:          "Quota exceeded",
    	EEXIST:          "File exists",
    	EFAULT:          "Bad address",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 20:58:35 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  8. src/net/http/httputil/dump_test.go

    		got = strings.ReplaceAll(got, "\r", "")
    
    		if got != tt.want {
    			t.Errorf("%d.\nDumpResponse got:\n%s\n\nWant:\n%s\n", i, got, tt.want)
    		}
    	}
    }
    
    // Issue 38352: Check for deadlock on canceled requests.
    func TestDumpRequestOutIssue38352(t *testing.T) {
    	if testing.Short() {
    		return
    	}
    	t.Parallel()
    
    	timeout := 10 * time.Second
    	if deadline, ok := t.Deadline(); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  9. src/runtime/race/testdata/atomic_test.go

    	c := make(chan bool)
    	var a uint64
    	go func() {
    		atomic.AddUint64(&a, 1)
    		c <- true
    	}()
    	a = 42
    	<-c
    }
    
    // A nil pointer in an atomic operation should not deadlock
    // the rest of the program. Used to hang indefinitely.
    func TestNoRaceAtomicCrash(t *testing.T) {
    	var mutex sync.Mutex
    	var nilptr *int32
    	panics := 0
    	defer func() {
    		if x := recover(); x != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 16 17:26:46 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  10. src/runtime/rwmutex.go

    const rwmutexMaxReaders = 1 << 30
    
    // rlock locks rw for reading.
    func (rw *rwmutex) rlock() {
    	// The reader must not be allowed to lose its P or else other
    	// things blocking on the lock may consume all of the Ps and
    	// deadlock (issue #20903). Alternatively, we could drop the P
    	// while sleeping.
    	acquireLockRankAndM(rw.readRank)
    	lockWithRankMayAcquire(&rw.rLock, getLockRank(&rw.rLock))
    
    	if rw.readerCount.Add(1) < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:29:04 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top