Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 4,433 for Dead (0.17 sec)

  1. test/return.go

    func _() int {
    L:
    	{
    		print(1)
    		goto L
    	}
    }
    
    // block ending in terminating statement is okay
    func _() int {
    	print(1)
    	{
    		panic(2)
    	}
    }
    
    // adding more code - even though it is dead - now requires a return
    
    func _() int {
    	print(1)
    	return 2
    	print(3)
    } // ERROR "missing return"
    
    func _() int {
    L:
    	print(1)
    	goto L
    	print(3)
    } // ERROR "missing return"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 32.7K bytes
    - Viewed (0)
  2. src/internal/coverage/calloc/batchcounteralloc.go

    package calloc
    
    // This package contains a simple "batch" allocator for allocating
    // coverage counters (slices of uint32 basically), for working with
    // coverage data files. Collections of counter arrays tend to all be
    // live/dead over the same time period, so a good fit for batch
    // allocation.
    
    type BatchCounterAlloc struct {
    	pool []uint32
    }
    
    func (ca *BatchCounterAlloc) AllocateCounters(n int) []uint32 {
    	const chunk = 8192
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:47:16 UTC 2022
    - 754 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_fuzz_err_deadlock.txt

    # 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"
    	"path/filepath"
    	"testing"
    	"time"
    )
    
    func FuzzDead(f *testing.F) {
    	go func() {
    		c := filepath.Join(os.Getenv("GOCACHE"), "fuzz", "test", "FuzzDead")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 16 19:51:23 UTC 2023
    - 999 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_tidy_sum.txt

    # go.sum should not normally lose old entries
    go get rsc.io/quote@v1.0.0
    grep 'rsc.io/quote v1.0.0' go.sum
    grep 'rsc.io/quote v1.5.2' go.sum
    grep rsc.io/sampler go.sum
    
    # go mod tidy should clear dead entries from go.sum
    go mod tidy
    grep 'rsc.io/quote v1.0.0' go.sum
    ! grep 'rsc.io/quote v1.5.2' go.sum
    ! grep rsc.io/sampler go.sum
    
    # go.sum with no entries is OK to keep
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 742 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/flagalloc.go

    	for _, b := range f.Blocks {
    		b.FlagsLiveAtEnd = end[b.ID] != nil
    	}
    
    	// Remove any now-dead values.
    	// The number of values to remove is likely small,
    	// and removing them requires processing all values in a block,
    	// so minimize the number of blocks that we touch.
    
    	// Shrink remove to contain only dead values, and clobber those dead values.
    	for i := 0; i < len(remove); i++ {
    		v := remove[i]
    		if v.Uses == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  6. test/fixedbugs/issue14591.go

    // run
    
    // Copyright 2016 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.
    
    // Test to make sure we don't think values are dead
    // when they are assigned to a PPARAMOUT slot before
    // the last GC safepoint.
    
    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    // When a T is deallocated, T[1] is certain to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 769 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unreachable/unreachable.go

    			d.findLabels(stmt)
    		}
    
    	case *ast.CaseClause:
    		for _, stmt := range x.Body {
    			d.findLabels(stmt)
    		}
    	}
    }
    
    // findDead walks the statement looking for dead code.
    // If d.reachable is false on entry, stmt itself is dead.
    // When findDead returns, d.reachable tells whether the
    // statement following stmt is reachable.
    func (d *deadState) findDead(stmt ast.Stmt) {
    	// Is this a labeled goto target?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/print.go

    	fmt.Fprintf(p.w, "  b%d:", b.ID)
    	if len(b.Preds) > 0 {
    		io.WriteString(p.w, " <-")
    		for _, e := range b.Preds {
    			pred := e.b
    			fmt.Fprintf(p.w, " b%d", pred.ID)
    		}
    	}
    	if !reachable {
    		fmt.Fprint(p.w, " DEAD")
    	}
    	io.WriteString(p.w, "\n")
    }
    
    func (p stringFuncPrinter) endBlock(b *Block, reachable bool) {
    	if !p.printDead && !reachable {
    		return
    	}
    	fmt.Fprintln(p.w, "    "+b.LongString())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue27278.go

    // run
    
    // Copyright 2018 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.
    
    // Issue 27278: dead auto elim deletes an auto and its
    // initialization, but it is live because of a nil check.
    
    package main
    
    type T struct {
    	_ [3]string
    	T2
    }
    
    func (t *T) M() []string {
    	return t.T2.M()
    }
    
    type T2 struct {
    	T3
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 30 02:19:37 UTC 2018
    - 865 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/compile.go

    	{name: "softfloat", fn: softfloat, required: true},
    	{name: "late opt", fn: opt, required: true}, // TODO: split required rules and optimizing rules
    	{name: "dead auto elim", fn: elimDeadAutosGeneric},
    	{name: "sccp", fn: sccp},
    	{name: "generic deadcode", fn: deadcode, required: true}, // remove dead stores, which otherwise mess up store chain
    	{name: "check bce", fn: checkbce},
    	{name: "branchelim", fn: branchelim},
    	{name: "late fuse", fn: fuseLate},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top