Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 232 for defBlock (0.66 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    	// Find the var's defining block in the CFG,
    	// plus the rest of the statements of that block.
    	var defblock *cfg.Block
    	var rest []ast.Node
    outer:
    	for _, b := range g.Blocks {
    		for i, n := range b.Nodes {
    			if n == stmt {
    				defblock = b
    				rest = b.Nodes[i+1:]
    				break outer
    			}
    		}
    	}
    	if defblock == nil {
    		panic("internal error: can't find defining block for cancel var")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/sccp.go

    				}
    			}
    		}
    		for _, ctl := range block.ControlValues() {
    			// for control values that can become constants, find their use blocks
    			if possibleConst(ctl) {
    				t.defBlock[ctl] = append(t.defBlock[ctl], block)
    			}
    		}
    	}
    }
    
    // addUses finds all uses of value and appends them into work list for further process
    func (t *worklist) addUses(val *Value) {
    	for _, use := range t.defUse[val] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *       "safe" edge is created.
     *   <li>If a cycle is detected, an "unsafe" (cyclic) edge is created to represent a potential
     *       deadlock situation, and the appropriate Policy is executed.
     * </ul>
     *
     * <p>Note that detection of potential deadlock does not necessarily indicate that deadlock will
     * happen, as it is possible that higher level application logic prevents the cyclic lock
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_fuzz_err_deadlock.txt

    ! go test -fuzz=FuzzDead -v
    # This is a somewhat inexact check, but since we don't prefix the error with anything
    # and as the error suffix is platform dependent, this is the best we can do. In the
    # deadlock failure case, the test will just deadlock and timeout anyway, so it should
    # be clear that that failure mode is different.
    stdout 'open'
    
    -- go.mod --
    module test
    
    -- cov_test.go --
    package dead
    
    import (
    	"os"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 19:51:23 UTC 2023
    - 999 bytes
    - Viewed (0)
  5. src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go

    	mu.Unlock()
    
    	if wait != nil {
    		wait <- f
    	}
    
    	// Spurious EDEADLK errors arise on platforms that compute deadlock graphs at
    	// the process, rather than thread, level. Consider processes P and Q, with
    	// threads P.1, P.2, and Q.3. The following trace is NOT a deadlock, but will be
    	// reported as a deadlock on systems that consider only process granularity:
    	//
    	// 	P.1 locks file A.
    	// 	Q.3 locks file B.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 17 02:24:35 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

     *       "safe" edge is created.
     *   <li>If a cycle is detected, an "unsafe" (cyclic) edge is created to represent a potential
     *       deadlock situation, and the appropriate Policy is executed.
     * </ul>
     *
     * <p>Note that detection of potential deadlock does not necessarily indicate that deadlock will
     * happen, as it is possible that higher level application logic prevents the cyclic lock
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 35.9K bytes
    - Viewed (0)
  7. test/fixedbugs/issue21576.go

    //go:build !nacl && !js && !wasip1 && !gccgo
    
    // Copyright 2019 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.
    //
    // Ensure that deadlock detection can still
    // run even with an import of "_ os/signal".
    
    package main
    
    import (
    	"bytes"
    	"context"
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"time"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/locking/DependencyLockingLenientModeIntegrationTest.groovy

            when:
            succeeds 'checkDeps'
    
            then:
            resolve.expectDefaultConfiguration('runtime')
            resolve.expectGraph {
                root(":", ":depLock:") {
                    edge("org:foo:1.+", "org:foo:1.1") {
                        byConflictResolution("between versions 1.0 and 1.1")
                        byConstraint("dependency was locked to version '1.0' (update/lenient mode)")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. src/runtime/crash_test.go

    	testCrashHandler(t, false)
    }
    
    func testDeadlock(t *testing.T, name string) {
    	// External linking brings in cgo, causing deadlock detection not working.
    	testenv.MustInternalLink(t, false)
    
    	output := runTestProg(t, "testprog", name)
    	want := "fatal error: all goroutines are asleep - deadlock!\n"
    	if !strings.HasPrefix(output, want) {
    		t.Fatalf("output does not start with %q:\n%s", want, output)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  10. src/runtime/mklockrank.go

    	// select.
    	"hchan": true,
    	// Multiple hchanLeafs are acquired in hchan.sortkey() order in
    	// syncadjustsudogs().
    	"hchanLeaf": true,
    	// The point of the deadlock lock is to deadlock.
    	"deadlock": true,
    }
    
    func main() {
    	flagO := flag.String("o", "", "write to `file` instead of stdout")
    	flagDot := flag.Bool("dot", false, "emit graphviz output instead of Go")
    	flag.Parse()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top