- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 617 for peak (0.05 sec)
-
src/cmd/cgo/internal/testsanitizers/testdata/tsan2.go
extern void GoRun(void); // Yes, you can have definitions if you use //export, as long as they are weak. int val __attribute__ ((weak)); int run(void) __attribute__ ((weak)); int run() { val = 1; GoRun(); return val; } void setVal(int) __attribute__ ((weak)); void setVal(int i) { val = i; } */ import "C" import "runtime" //export GoRun
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 940 bytes - Viewed (0) -
tests/util/leak/check_test.go
// limitations under the License. package leak import ( "testing" "time" ) func TestMain(m *testing.M) { CheckMain(m) } func TestLeak(t *testing.T) { gracePeriod = time.Millisecond * 50 t.Run("no leak", func(t *testing.T) { if err := check(nil); err != nil { t.Fatal(err) } }) t.Run("leak", func(t *testing.T) { stop := make(chan struct{}) go func() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 03 15:06:46 UTC 2020 - 1.1K bytes - Viewed (0) -
src/unique/handle.go
// more than one per racing thread. var ( toInsert *T // Keep this around to keep it alive. toInsertWeak weak.Pointer[T] ) newValue := func() weak.Pointer[T] { if toInsert == nil { toInsert = new(T) *toInsert = clone(value, &m.cloneSeq) toInsertWeak = weak.Make(toInsert) } return toInsertWeak } var ptr *T for { // Check the map. wp, ok := m.Load(value) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 5.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/PeekingIterator.java
* * <p>Calls to {@code peek()} should not change the state of the iteration, except that it * <i>may</i> prevent removal of the most recent element via {@link #remove()}. * * @throws NoSuchElementException if the iteration has no more elements according to {@link * #hasNext()} */ @ParametricNullness E peek(); /** * {@inheritDoc} *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jan 24 17:47:51 UTC 2022 - 2.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradleModuleMetadataParser.java
reader.beginObject(); while (reader.peek() != END_OBJECT) { String attrName = reader.nextName(); if (reader.peek() == BOOLEAN) { boolean attrValue = reader.nextBoolean(); attributes = attributesFactory.concat(attributes, Attribute.of(attrName, Boolean.class), attrValue); } else if (reader.peek() == NUMBER) { Integer attrValue = reader.nextInt();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 05 02:07:04 UTC 2024 - 31.2K bytes - Viewed (0) -
src/net/http/main_test.go
if testing.Short() { return } if leakReported { // To avoid confusion, only report the first leak of each test run. // After the first leak has been reported, we can't tell whether the leaked // goroutines are a new leak from a subsequent test or just the same // goroutines from the first leak still hanging around, and we may add a lot // of latency waiting for them to exit at the end of each test. return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 22:49:46 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/QueuePeekTester.java
@CollectionSize.Require(ZERO) public void testPeek_empty() { assertNull("emptyQueue.peek() should return null", getQueue().peek()); expectUnchanged(); } @CollectionSize.Require(ONE) public void testPeek_size1() { assertEquals("size1Queue.peek() should return first element", e0(), getQueue().peek()); expectUnchanged(); } @CollectionFeature.Require(KNOWN_ORDER)
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 2.1K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/heading.go
// after the ID. buf.Truncate(buf.Len() - 1) fmt.Fprintf(buf, " {#%s}\n", b.ID) } } func newATXHeading(p *parseState, s line) (line, bool) { peek := s var n int if peek.trimHeading(&n) { s := peek.string() s = trimRightSpaceTab(s) // Remove trailing '#'s. if t := strings.TrimRight(s, "#"); t != trimRightSpaceTab(t) || t == "" { s = t } var id string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/go/internal/imports/read.go
if r.err != nil { if r.nerr++; r.nerr > 10000 { panic("go/build: import reader looping") } return 0 } // Use r.peek as first input byte. // Don't just return r.peek here: it might have been left by peekByte(false) // and this might be peekByte(true). c := r.peek if c == 0 { c = r.readByte() } for r.err == nil && !r.eof { if skipSpace {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 15 18:42:11 UTC 2021 - 6.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan5.go
package main // Using reflect to set a value was not seen by msan. /* #include <stdlib.h> extern void Go1(int*); extern void Go2(char*); // Use weak as a hack to permit defining a function even though we use export. void C1() __attribute__ ((weak)); void C2() __attribute__ ((weak)); void C1() { int i; Go1(&i); if (i != 42) { abort(); } } void C2() { char a[2]; a[1] = 42; Go2(a);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 904 bytes - Viewed (0)