- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 283 for flive (0.04 sec)
-
test/finprofiled.go
// only for middle bytes. The finalizer resurrects that object. // As the result, all allocated memory must stay alive. const ( N = 1 << 20 tinyBlockSize = 16 // runtime._TinySize ) hold := make([]*int32, 0, N) for i := 0; i < N; i++ { x := new(int32) if i%3 == 0 { runtime.SetFinalizer(x, func(p *int32) { hold = append(hold, p) }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 05:48:00 UTC 2023 - 2.1K bytes - Viewed (0) -
src/sync/oncefunc_test.go
} f() gcwaitfin() if gc.Load() != true { // Even if f is still alive, the function passed to Once(Func|Value|Values) // is not kept alive after the first call to f. t.Fatal("wrapped function should be garbage collected, but still live") } f() }) } } // gcwaitfin performs garbage collection and waits for all finalizers to run.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:31:33 UTC 2023 - 6.9K bytes - Viewed (0) -
test/fixedbugs/issue15747.go
var b bool func f1(q *Q, xx []byte) interface{} { // ERROR "live at call to newobject: xx$" "live at entry to f1: xx$" // xx was copied from the stack to the heap on the previous line: // xx was live for the first two prints but then it switched to &xx // being live. We should not see plain xx again. if b { global = &xx } xx, _, err := f2(xx, 5) // ERROR "live at call to f2: &xx$" if err != nil { return err } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/deadcode.go
func liveValues(f *Func, reachable []bool) (live []bool, liveOrderStmts []*Value) { live = f.Cache.allocBoolSlice(f.NumValues()) liveOrderStmts = f.Cache.allocValueSlice(f.NumValues())[:0] // After regalloc, consider all values to be live. // See the comment at the top of regalloc.go and in deadcode for details. if f.RegAlloc != nil { for i := range live { live[i] = true } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 00:29:01 UTC 2023 - 9.2K bytes - Viewed (0) -
test/live2.go
// errorcheck -0 -live -wb=0 // Copyright 2014 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. // liveness tests with inlining ENABLED // see also live.go. package main // issue 8142: lost 'addrtaken' bit on inlined variables. func printnl() //go:noescape func useT40(*T40) type T40 struct { m map[int]int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 23:29:33 UTC 2023 - 953 bytes - Viewed (0) -
test/fixedbugs/issue20250.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 727 bytes - Viewed (0) -
test/live_uintptrkeepalive.go
func autotmpImplicit() { // ERROR "can inline autotmpImplicit" var t int implicit(uintptr(unsafe.Pointer(&t))) // ERROR "live at call to implicit: .?autotmp" "stack object .autotmp_[0-9]+ unsafe.Pointer$" } func autotmpExplicit() { // ERROR "can inline autotmpExplicit" var t int explicit(uintptr(unsafe.Pointer(&t))) // ERROR "live at call to explicit: .?autotmp" "stack object .autotmp_[0-9]+ unsafe.Pointer$" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/print.go
} linenumber = fmt.Sprintf("(%s%d) ", pfx, p.Line()) } return linenumber } func (p stringFuncPrinter) value(v *Value, live bool) { if !p.printDead && !live { return } fmt.Fprintf(p.w, " %s", StmtString(v.Pos)) fmt.Fprint(p.w, v.LongString()) if !live { fmt.Fprint(p.w, " DEAD") } fmt.Fprintln(p.w) } func (p stringFuncPrinter) startDepCycle() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 3.9K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/ready/probe.go
} // isEnvoyReady checks to ensure that Envoy is in the LIVE state and workers have started. func (p *Probe) isEnvoyReady() error { if p.NoEnvoy { return nil } if p.Context == nil { return p.checkEnvoyReadiness() } select { case <-p.Context.Done(): return fmt.Errorf("server is not live, current state is: %s", StateString(Draining)) default: return p.checkEnvoyReadiness() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 02 00:35:05 UTC 2024 - 4.5K bytes - Viewed (0) -
src/runtime/mfinal_test.go
xs := x[objsize:] // change objsize to objsize-1 and the test passes fin := make(chan bool, 1) runtime.SetFinalizer(y, func(z *objtype) { fin <- true }) runtime.GC() <-fin xsglobal = xs // keep empty slice alive until here } var xsglobal []byte func adjStringChunk() (string, *objtype) { b := make([]byte, objsize) for { s := string(b) t := new(objtype) p := *(*uintptr)(unsafe.Pointer(&s))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 19 20:45:58 UTC 2023 - 5.6K bytes - Viewed (0)