Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for SetIntArgRegs (0.11 sec)

  1. src/runtime/abi_test.go

    			success = true
    			break
    		}
    		time.Sleep(20 * time.Millisecond)
    	}
    	if !success {
    		t.Fatal("finalizer not asleep?")
    	}
    
    	argRegsBefore := runtime.SetIntArgRegs(abi.IntArgRegs)
    	defer runtime.SetIntArgRegs(argRegsBefore)
    
    	tests := []struct {
    		name         string
    		fin          any
    		confirmValue int
    	}{
    		{"Pointer", regFinalizerPointer, -1},
    		{"Interface", regFinalizerIface, -2},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/runtime/syscall_windows_test.go

    func TestStdcallAndCDeclCallbacks(t *testing.T) {
    	if _, err := exec.LookPath("gcc"); err != nil {
    		t.Skip("skipping test: gcc is missing")
    	}
    	tmp := t.TempDir()
    
    	oldRegs := runtime.SetIntArgRegs(abi.IntArgRegs)
    	defer runtime.SetIntArgRegs(oldRegs)
    
    	for _, dll := range cbDLLs {
    		t.Run(dll.name, func(t *testing.T) {
    			dllPath := dll.build(t, tmp)
    			dll := syscall.MustLoadDLL(dllPath)
    			defer dll.Release()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 16:31:35 UTC 2023
    - 32.5K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    }
    
    func (th *TimeHistogram) Record(duration int64) {
    	(*timeHistogram)(th).record(duration)
    }
    
    var TimeHistogramMetricsBuckets = timeHistogramMetricsBuckets
    
    func SetIntArgRegs(a int) int {
    	lock(&finlock)
    	old := intArgRegs
    	if a >= 0 {
    		intArgRegs = a
    	}
    	unlock(&finlock)
    	return old
    }
    
    func FinalizerGAsleep() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top