Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 378 for touched (0.41 sec)

  1. src/database/sql/fakedb_test.go

    	line int64
    
    	// closeErr is returned when rowsCursor.Close
    	closeErr error
    }
    
    func (rc *rowsCursor) touchMem() {
    	rc.parentMem.touchMem()
    	rc.line++
    }
    
    func (rc *rowsCursor) Close() error {
    	rc.touchMem()
    	rc.parentMem.touchMem()
    	rc.closed = true
    	return rc.closeErr
    }
    
    func (rc *rowsCursor) Columns() []string {
    	return rc.cols[rc.posSet]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/testprog/stress-start-stop.go

    			<-done
    			wg.Done()
    		}()
    		time.Sleep(time.Millisecond)
    
    		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.7K bytes
    - Viewed (0)
  3. test/fixedbugs/bug472.dir/p1.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p1
    
    import "runtime"
    
    func E() func() int { return runtime.NumCPU }
    
    func F() func() { return runtime.Gosched }
    
    func G() func() string { return runtime.GOROOT }
    
    func H() func() { return runtime.GC }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 420 bytes
    - Viewed (0)
  4. src/runtime/pprof/testdata/mappingtest/main.go

    			if foo > 0 {
    				foo *= foo
    			} else {
    				foo *= foo + 1
    			}
    			salt2 = foo
    		}
    		runtime.Gosched()
    	}
    }
    
    func cpuHogCFunction() {
    	// Generates CPU profile samples including a Cgo call path.
    	for {
    		C.CPUHogCFunction()
    		runtime.Gosched()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 08 02:40:04 UTC 2019
    - 2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. test/ken/chan.go

    	go sel(ca[0], ca[1], ca[2], ca[3], ca[8], ca[9], ca[10], ca[11])
    }
    
    // wait for outstanding tests to finish
    func wait() {
    	runtime.Gosched()
    	for changeNproc(0) != 0 {
    		runtime.Gosched()
    	}
    }
    
    // run all tests with specified buffer size
    func tests(c int) {
    	ca := mkchan(c, 4)
    	test1(ca[0])
    	test1(ca[1])
    	test1(ca[2])
    	test1(ca[3])
    	wait()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top