- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for defBlock (0.12 sec)
-
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) -
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) -
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) -
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) -
src/runtime/debug_test.go
"sync/atomic" "syscall" "testing" ) func startDebugCallWorker(t *testing.T) (g *runtime.G, after func()) { // This can deadlock if run under a debugger because it // depends on catching SIGTRAP, which is usually swallowed by // a debugger. skipUnderDebugger(t) // This can deadlock if there aren't enough threads or if a GC // tries to interrupt an atomic loop (see issue #10958). Execute
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 15:08:04 UTC 2023 - 8K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_limit_dup_entry.txt
[short] skip env GOCACHE=$WORK/cache # FuzzA attempts to cause the mutator to create duplicate inputs that generate # new coverage. Previously this would trigger a corner case when the fuzzer # had an execution limit, causing it to deadlock and sit in the coordinator # loop indefinitely, failing to exit once the limit had been exhausted. go test -fuzz=FuzzA -fuzztime=100x -parallel=1 -- go.mod -- module m go 1.16 -- fuzz_test.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 01:16:19 UTC 2023 - 725 bytes - Viewed (0) -
platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/ProgressBar.java
Future<?> ignored = deadlockPreventer.submit(new Runnable() { @Override public void run() { // do not do this directly or a deadlock happens // to prevent that deadlock, execute it separately in another thread LOGGER.warn("More progress was logged than there should be ({} > {})", current, total); } }); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:37 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/scaninfo/DefaultDaemonScanInfoSpec.groovy
then: 1 * listenerManager.removeListener(daemonExpirationListener) } def "should not deadlock with daemon scan info"() { def manager = new DefaultListenerManager(Scope.Global) def daemonScanInfo = new DefaultDaemonScanInfo(new DaemonRunningStats(), 1000, false, Mock(DaemonRegistry), manager)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 4.1K bytes - Viewed (0) -
src/runtime/lock_wasip1.go
} func lock(l *mutex) { lockWithRank(l, getLockRank(l)) } func lock2(l *mutex) { if l.key == mutex_locked { // wasm is single-threaded so we should never // observe this. throw("self deadlock") } gp := getg() if gp.m.locks < 0 { throw("lock count") } gp.m.locks++ l.key = mutex_locked } func unlock(l *mutex) { unlockWithRank(l) } func unlock2(l *mutex) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:02:20 UTC 2023 - 2K bytes - Viewed (0) -
src/sync/once.go
// arguments to a function to be invoked by Do: // // config.once.Do(func() { config.init(filename) }) // // Because no call to Do returns until the one call to f returns, if f causes // Do to be called, it will deadlock. // // If f panics, Do considers it to have returned; future calls of Do return // without calling f. func (o *Once) Do(f func()) { // Note: Here is an incorrect implementation of Do: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 21:14:51 UTC 2024 - 2.5K bytes - Viewed (0)