- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 170 for stkobj (0.12 sec)
-
test/stackobj.go
} if c != 1 { panic(fmt.Sprintf("expected collection at phase 1, got phase %d", c)) } } func f() { var s StkObj s.h = new(HeapObj) runtime.SetFinalizer(s.h, func(h *HeapObj) { // Remember at what phase the heap object was collected. c = n }) g(&s) gc() } func g(s *StkObj) { gc() // heap object is still live here runtime.KeepAlive(s) gc() // heap object should be collected here
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 03 19:54:16 UTC 2018 - 975 bytes - Viewed (0) -
test/stackobj3.go
) type HeapObj [8]int64 type StkObj struct { h *HeapObj } var n int var c int = -1 func gc() { // encourage heap object to be collected, and have its finalizer run. runtime.GC() runtime.GC() runtime.GC() n++ } var null StkObj var sink *HeapObj //go:noinline func use(p *StkObj) { } //go:noinline func f(s StkObj, b bool) { var p *StkObj if b {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 03 19:54:16 UTC 2018 - 1.4K bytes - Viewed (0) -
src/runtime/mgcmark.go
} r := obj.r if r == nil { // We've already scanned this object. continue } obj.setRecord(nil) // Don't scan it again. if stackTraceDebug { printlock() print(" live stkobj at", hex(state.stack.lo+uintptr(obj.off)), "of size", obj.size) if conservative { print(" (conservative)") } println() printunlock() } gcdata := r.gcdata() var s *mspan
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 21:25:11 UTC 2024 - 52.5K bytes - Viewed (0) -
src/cmd/internal/obj/objfile.go
strings.HasSuffix(name, ".arginfo1") || strings.HasSuffix(name, ".argliveinfo") || strings.HasSuffix(name, ".wrapinfo") || strings.HasSuffix(name, ".args_stackmap") || strings.HasSuffix(name, ".stkobj") { return 'F' // go:func.* or go:funcrel.* } if strings.HasPrefix(name, "type:") { return 'T' } return 0 } func contentHash64(s *LSym) goobj.Hash64Type {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/link/internal/ld/symtab.go
strings.HasSuffix(name, ".arginfo1"), strings.HasSuffix(name, ".argliveinfo"), strings.HasSuffix(name, ".wrapinfo"), strings.HasSuffix(name, ".args_stackmap"), strings.HasSuffix(name, ".stkobj"): ldr.SetAttrNotInSymbolTable(s, true) symGroupType[s] = sym.SGOFUNC ldr.SetCarrierSym(s, symgofunc) if ctxt.Debugvlog != 0 { align := ldr.SymAlign(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 16:29:40 UTC 2023 - 29.2K bytes - Viewed (0) -
src/cmd/compile/internal/liveness/plive.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 15:22:22 UTC 2024 - 45.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/data.go
// runtime.etypes must be at the end of // the relro data. isRelro = true } case sym.SGOFUNC: // The only SGOFUNC symbols that contain relocations are .stkobj, // and their relocations are of type objabi.R_ADDROFF, // which always get resolved during linking. isRelro = false } if isRelro { state.setSymType(s, symnrelro)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 100.5K bytes - Viewed (0) -
src/runtime/stack_test.go
func count22(n int) int { return 1 + count23(n-1) } func count23(n int) int { return 1 + count1(n-1) } type stkobjT struct { p *stkobjT x int64 y [20]int // consume some stack } // Sum creates a linked list of stkobjTs. func Sum(n int64, p *stkobjT) { if n == 0 { return } s := stkobjT{p: p, x: n} Sum(n-1, &s) p.x += s.x } func BenchmarkStackCopyWithStkobj(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 23.1K bytes - Viewed (0) -
docs/debugging/s3-verify/main.go
return false } core := minio.Core{Client: sclnt} sobj, _, _, err := core.GetObject(context.Background(), sourceBucket, srcCtnt.Key, opts) if err != nil { fmt.Printf("unreadable on source: %s (%s)\n", srcCtnt.Key, err) return false } tobj, _, _, err := core.GetObject(context.Background(), targetBucket, tgtCtnt.Key, opts) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Jun 22 15:12:47 UTC 2022 - 8.4K bytes - Viewed (0) -
test/chan/nonblock.go
func breceiver(c chan bool, strobe chan bool) { if !<-c { panic("b value") } strobe <- true } func bsender(c chan bool, strobe chan bool) { c <- true strobe <- true } func sreceiver(c chan string, strobe chan bool) { if <-c != "hello" { panic("s value") } strobe <- true } func ssender(c chan string, strobe chan bool) { c <- "hello again" strobe <- true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:44:02 UTC 2012 - 3.9K bytes - Viewed (0)