Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for osExit (0.12 sec)

  1. pkg/test/framework/suite.go

    		func(_ *suiteContext) int {
    			return m.Run()
    		},
    		os.Exit,
    		getSettings)
    }
    
    func newSuite(testID string, fn mRunFn, osExit func(int), getSettingsFn getSettingsFunc) *suiteImpl {
    	s := &suiteImpl{
    		testID:      testID,
    		mRun:        fn,
    		osExit:      osExit,
    		getSettings: getSettingsFn,
    		labels:      label.NewSet(),
    	}
    
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. pkg/test/framework/suite_test.go

    	defer rtMu.Unlock()
    	rt = nil
    }
    
    // Create a bogus environment for testing. This can be removed when "environments" are removed
    func newTestSuite(testID string, fn mRunFn, osExit func(int), getSettingsFn getSettingsFunc) *suiteImpl {
    	s := newSuite(testID, fn, osExit, getSettingsFn)
    	s.envFactory = func(ctx resource.Context) (resource.Environment, error) {
    		return kube.FakeEnvironment{}, nil
    	}
    	return s
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. src/internal/cpu/cpu_arm64_darwin.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 && darwin && !ios
    
    package cpu
    
    import _ "unsafe" // for linkname
    
    func osInit() {
    	ARM64.HasATOMICS = sysctlEnabled([]byte("hw.optional.armv8_1_atomics\x00"))
    	ARM64.HasCRC32 = sysctlEnabled([]byte("hw.optional.armv8_crc32\x00"))
    	ARM64.HasSHA512 = sysctlEnabled([]byte("hw.optional.armv8_2_sha512\x00"))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. src/runtime/os_plan9.go

    	if fd >= 0 {
    		read(fd, unsafe.Pointer(&b), int32(len(b)))
    		closefd(fd)
    	}
    	c := b[:]
    	for c[0] == ' ' || c[0] == '\t' {
    		c = c[1:]
    	}
    	return uint64(_atoi(c))
    }
    
    func osinit() {
    	physPageSize = getPageSize()
    	initBloc()
    	ncpu = getproccount()
    	getg().m.procid = getpid()
    }
    
    //go:nosplit
    func crash() {
    	notify(nil)
    	*(*int)(nil) = 0
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. src/runtime/malloc.go

    //
    // This must be set by the OS init code (typically in osinit) before
    // mallocinit.
    var physPageSize uintptr
    
    // physHugePageSize is the size in bytes of the OS's default physical huge
    // page size whose allocation is opaque to the application. It is assumed
    // and verified to be a power of two.
    //
    // If set, this must be set by the OS init code (typically in osinit) before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. src/runtime/proc.go

    			if stringslite.HasPrefix(s, prefix) {
    				env = gostring(p)[len(prefix):]
    				break
    			}
    		}
    	}
    	return env
    }
    
    // The bootstrap sequence is:
    //
    //	call osinit
    //	call schedinit
    //	make & queue new G
    //	call runtime·mstart
    //
    // The new G calls runtime·main.
    func schedinit() {
    	lockInit(&sched.lock, lockRankSched)
    	lockInit(&sched.sysmonlock, lockRankSysmon)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top