- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 288 for noleak (0.15 sec)
-
test/escape5.go
// Test, using compiler diagnostic flags, that the escape analysis is working. // Compiles but does not run. Inlining is disabled. package foo import ( "runtime" "unsafe" ) func noleak(p *int) int { // ERROR "p does not escape" return *p } func leaktoret(p *int) *int { // ERROR "leaking param: p to result" return p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 5.3K bytes - Viewed (0) -
test/escape2.go
b.ii = &v return b.i } func goLeak(b *Bar) { // ERROR "leaking param: b$" go b.NoLeak() } type Bar2 struct { i [12]int ii []int } func NewBar2() *Bar2 { return &Bar2{[12]int{42}, nil} // ERROR "&Bar2{...} escapes to heap$" } func (b *Bar2) NoLeak() int { // ERROR "b does not escape$" return b.i[0] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
test/escape2n.go
b.ii = &v return b.i } func goLeak(b *Bar) { // ERROR "leaking param: b$" go b.NoLeak() } type Bar2 struct { i [12]int ii []int } func NewBar2() *Bar2 { return &Bar2{[12]int{42}, nil} // ERROR "&Bar2{...} escapes to heap$" } func (b *Bar2) NoLeak() int { // ERROR "b does not escape$" return b.i[0] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0) -
cmd/leak-detect_test.go
"sort" "strings" "time" ) const ( // deadline (in seconds) up to which the go routine leak detection has to be retried. leakDetectDeadline = 5 // pause time (in milliseconds) between each snapshot at the end of the go routine leak detection. leakDetectPauseTimeMs = 50 ) // LeakDetect - type with methods for go routine leak detection. type LeakDetect struct { relevantRoutines map[string]bool }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2_test.go
jobCreationTime: justAfterThePriorHour(), now: justBeforeTheHour(), expectedWarnings: 1, jobPresentInCJActiveStatus: true, }, "never ran, not valid time zone": { concurrencyPolicy: "Allow", schedule: onTheHour, timeZone: &errorTimeZone, deadline: noDead,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 70.8K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/interpodaffinity/filtering_test.go
pod := st.MakePod().Name("normal").Node("nodeA") for _, l := range labels { pod.Label(l, "") } return pod.Obj() } normalPodA := newPod("aaa") normalPodB := newPod("bbb") normalPodAB := newPod("aaa", "bbb") nodeA := &v1.Node{ObjectMeta: metav1.ObjectMeta{Name: "nodeA", Labels: map[string]string{"hostname": "nodeA"}}} tests := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 01 10:24:54 UTC 2023 - 58.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go
}}), nodes: []*v1.Node{ nodeWithTaints("nodeA", []v1.Taint{{ Key: "foo", Value: "bar", Effect: v1.TaintEffectPreferNoSchedule, }}), nodeWithTaints("nodeB", []v1.Taint{{ Key: "foo", Value: "blah", Effect: v1.TaintEffectPreferNoSchedule, }}), }, expectedList: []framework.NodeScore{ {Name: "nodeA", Score: framework.MaxNodeScore},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 17.5K bytes - Viewed (0) -
LICENSES/vendor/go.uber.org/goleak/LICENSE
= vendor/go.uber.org/goleak licensed under: = The MIT License (MIT) Copyright (c) 2018 Uber Technologies, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 14 11:11:37 UTC 2023 - 1.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_perm.txt
! go list ./noread/... ! stdout '^example.com/noread$' ! stderr 'matched no packages' stderr '^pattern ./noread/...: ' # Check module-prefix patterns. ! go list example.com/... ! stdout '^example.com/noread$' ! stderr 'matched no packages' stderr '^pattern example.com/...: ' ! go list example.com/noread/... ! stdout '^example.com/noread$' ! stderr 'matched no packages' stderr '^pattern example.com/noread/...: '
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 1.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/unicode/norm/forminfo.go
size uint8 // length of UTF-8 encoding of this rune ccc uint8 // leading canonical combining class (ccc if not decomposition) tccc uint8 // trailing canonical combining class (ccc if not decomposition) nLead uint8 // number of leading non-starters. flags qcInfo // quick check flags index uint16 } // functions dispatchable per form type lookupFunc func(b input, i int) Properties
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 8.7K bytes - Viewed (0)