Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetIntArgRegs (0.16 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/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