- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 72 for freelist (0.27 sec)
-
test/fixedbugs/issue57778.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p type FreeListG[T any] struct { freelist []*node[T] } type node[T any] struct{} func NewFreeListG[T any](size int) *FreeListG[T] { return &FreeListG[T]{freelist: make([]*node[T], 0, size)} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 22:13:42 UTC 2023 - 412 bytes - Viewed (0) -
src/encoding/gob/encode.go
e := enc.freeList if e == nil { e = new(encoderState) e.enc = enc } else { enc.freeList = e.next } e.sendZero = false e.fieldnum = 0 e.b = b if len(b.data) == 0 { b.data = b.scratch[0:0] } return e } func (enc *Encoder) freeEncoderState(e *encoderState) { e.next = enc.freeList enc.freeList = e }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 02:00:26 UTC 2024 - 19K bytes - Viewed (0) -
src/encoding/gob/decode.go
func (dec *Decoder) newDecoderState(buf *decBuffer) *decoderState { d := dec.freeList if d == nil { d = new(decoderState) d.dec = dec } else { dec.freeList = d.next } d.b = buf return d } func (dec *Decoder) freeDecoderState(d *decoderState) { d.next = dec.freeList dec.freeList = d } func overflow(name string) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:10:23 UTC 2023 - 40.1K bytes - Viewed (0) -
src/encoding/gob/decoder.go
decoderCache map[reflect.Type]map[typeId]**decEngine // cache of compiled engines ignorerCache map[typeId]**decEngine // ditto for ignored objects freeList *decoderState // list of free decoderStates; avoids reallocation countBuf []byte // used for decoding integers while parsing messages err error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 7.2K bytes - Viewed (0) -
src/encoding/gob/encoder.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 7.8K bytes - Viewed (0) -
src/runtime/mgcsweep.go
// and were not allocated since then. // If the allocBits index is >= s.freeindex and the bit // is not marked then the object remains unallocated // since the last GC. // This situation is analogous to being on a freelist. // Unlink & free special records for any objects we're about to free. // Two complications here: // 1. An object can have both finalizer and profile special records.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:52:18 UTC 2024 - 32.9K bytes - Viewed (0) -
src/net/http/transport.go
} idles := t.idleConn[key] if len(idles) >= t.maxIdleConnsPerHost() { return errTooManyIdleHost } for _, exist := range idles { if exist == pconn { log.Fatalf("dup idle pconn %p in freelist", pconn) } } t.idleConn[key] = append(idles, pconn) t.idleLRU.add(pconn) if t.MaxIdleConns != 0 && t.idleLRU.len() > t.MaxIdleConns { oldest := t.idleLRU.removeOldest()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 21:59:21 UTC 2024 - 91K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
/* fromList modifications reflected in toList */ fromList.set(0, 5); assertEquals(asList(4, 3, 2, 5), toList); fromList.add(6); assertEquals(asList(6, 4, 3, 2, 5), toList); fromList.add(2, 9); assertEquals(asList(6, 4, 3, 9, 2, 5), toList); fromList.remove(Integer.valueOf(2)); assertEquals(asList(6, 4, 3, 9, 5), toList); fromList.remove(3);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 35.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
/* fromList modifications reflected in toList */ fromList.set(0, 5); assertEquals(asList(4, 3, 2, 5), toList); fromList.add(6); assertEquals(asList(6, 4, 3, 2, 5), toList); fromList.add(2, 9); assertEquals(asList(6, 4, 3, 9, 2, 5), toList); fromList.remove(Integer.valueOf(2)); assertEquals(asList(6, 4, 3, 9, 5), toList); fromList.remove(3);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 17 16:33:44 UTC 2024 - 35.2K bytes - Viewed (0) -
operator/pkg/util/util.go
return nil, err } var fileList []string if fi.IsDir() { err := filepath.Walk(path, func(path string, info os.FileInfo, err error) error { if err != nil { return err } if info.IsDir() || !filter(path) { return nil } fileList = append(fileList, path) return nil }) if err != nil { return nil, err } } else { fileList = append(fileList, path) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 02 13:01:43 UTC 2023 - 3.9K bytes - Viewed (0)