Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 306 for touched (0.19 sec)

  1. test/gc2.go

    	runtime.ReadMemStats(st)
    	for i := 0; i < N; i++ {
    		c := make(chan int, 10)
    		_ = c
    		if i%100 == 0 {
    			for j := 0; j < 4; j++ {
    				runtime.GC()
    				runtime.Gosched()
    				runtime.GC()
    				runtime.Gosched()
    			}
    		}
    	}
    
    	runtime.ReadMemStats(memstats)
    	obj := int64(memstats.HeapObjects - st.HeapObjects)
    	if obj > N/5 {
    		fmt.Println("too many objects left:", obj)
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 977 bytes
    - Viewed (0)
  2. src/internal/runtime/exithook/hooks.go

    }
    
    var (
    	locked  atomic.Int32
    	runGoid atomic.Uint64
    	hooks   []Hook
    	running bool
    
    	// runtime sets these for us
    	Gosched func()
    	Goid    func() uint64
    	Throw   func(string)
    )
    
    // Add adds a new exit hook.
    func Add(h Hook) {
    	for !locked.CompareAndSwap(0, 1) {
    		Gosched()
    	}
    	hooks = append(hooks, h)
    	locked.Store(0)
    }
    
    // Run runs the exit hooks.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/internal/trace/testdata/testprog/stress.go

    	time.Sleep(50 * time.Millisecond) // test proc stop/start events
    
    	go func() {
    		runtime.LockOSThread()
    		for {
    			select {
    			case <-done:
    				return
    			default:
    				runtime.Gosched()
    			}
    		}
    	}()
    
    	runtime.GC()
    	// Trigger GC from malloc.
    	n := 512
    	for i := 0; i < n; i++ {
    		_ = make([]byte, 1<<20)
    	}
    
    	// Create a bunch of busy goroutines to load all Ps.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultSourceDirectorySetTest.groovy

            File srcDir1 = new File(testDir, 'dir1')
            touch(new File(srcDir1, 'subdir/file1.txt'))
            touch(new File(srcDir1, 'subdir/file2.txt'))
            touch(new File(srcDir1, 'subdir/ignored.txt'))
            File srcDir2 = new File(testDir, 'dir2')
            touch(new File(srcDir2, 'subdir2/file1.txt'))
            touch(new File(srcDir2, 'subdir2/file2.txt'))
            touch(new File(srcDir2, 'subdir2/ignored.txt'))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 28 15:32:09 UTC 2022
    - 14.4K bytes
    - Viewed (0)
  5. src/main/webapp/js/help.js

        $searchButton.attr("disabled", true);
        setTimeout(function() {
          $searchButton.attr("disabled", false);
        }, 3000);
        return true;
      });
    
      $(document).on("click touchend", function(e) {
        if (!$(e.target).closest("#searchOptions, [data-toggle='control-options']").length) {
          $("#searchOptions").removeClass("active");
        }
      });
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Mar 30 05:45:24 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/testx.go

    func Issue1560FromC() {
    	for atomic.LoadInt32(&issue1560) != 1 {
    		runtime.Gosched()
    	}
    	atomic.AddInt32(&issue1560, 1)
    	for atomic.LoadInt32(&issue1560) != 3 {
    		runtime.Gosched()
    	}
    	issue1560Ch <- true
    }
    
    func Issue1560FromGo() {
    	atomic.AddInt32(&issue1560, 1)
    	for atomic.LoadInt32(&issue1560) != 2 {
    		runtime.Gosched()
    	}
    	atomic.AddInt32(&issue1560, 1)
    	issue1560Ch <- true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  7. tests/non_std_test.go

    	DB.Save(&animal).Update("From", "a nice place") // The name field should be untouched
    	DB.First(&animal, animal.Counter)
    	if animal.Name != "galeone" {
    		t.Errorf("Name fields shouldn't be changed if untouched, but got %v", animal.Name)
    	}
    
    	// When changing a field with a default value, the change must occur
    	animal.Name = "amazing horse"
    	DB.Save(&animal)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/pledge_openbsd.go

    	if err != nil {
    		return err
    	}
    
    	return pledge(pptr, exptr)
    }
    
    // PledgePromises implements the pledge syscall.
    //
    // This changes the promises and leaves the execpromises untouched.
    //
    // For more information see pledge(2).
    func PledgePromises(promises string) error {
    	if err := pledgeAvailable(); err != nil {
    		return err
    	}
    
    	pptr, err := BytePtrFromString(promises)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/runtime/debuglog_test.go

    		// Encourage main goroutine to move around to
    		// different Ms and Ps.
    		for atomic.LoadInt32(&done) == 0 {
    			runtime.Gosched()
    		}
    		wg.Done()
    	}()
    	var want strings.Builder
    	for i := 0; i < 1000; i++ {
    		runtime.Dlog().I(i).End()
    		fmt.Fprintf(&want, "[] %d\n", i)
    		runtime.Gosched()
    	}
    	atomic.StoreInt32(&done, 1)
    	wg.Wait()
    
    	gotFull := runtime.DumpDebugLog()
    	got := dlogCanonicalize(gotFull)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/testdata/tsan6.go

    	var mu sync.Mutex
    	c := make(chan []C.char, 100)
    	for i := 0; i < 10; i++ {
    		wg.Add(2)
    		go func() {
    			defer wg.Done()
    			for i := 0; i < 100; i++ {
    				c <- make([]C.char, 4096)
    				runtime.Gosched()
    			}
    		}()
    		go func() {
    			defer wg.Done()
    			for i := 0; i < 100; i++ {
    				p := &(<-c)[0]
    				mu.Lock()
    				C.f(p)
    				mu.Unlock()
    			}
    		}()
    	}
    	wg.Wait()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 817 bytes
    - Viewed (0)
Back to top