Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 108 for runtime_test (0.19 sec)

  1. src/runtime/nbpipe_pipe_test.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build aix || darwin
    
    package runtime_test
    
    import (
    	"runtime"
    	"syscall"
    	"testing"
    )
    
    func TestSetNonblock(t *testing.T) {
    	t.Parallel()
    
    	r, w, errno := runtime.Pipe()
    	if errno != 0 {
    		t.Fatal(syscall.Errno(errno))
    	}
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 20:47:17 UTC 2022
    - 706 bytes
    - Viewed (0)
  2. src/runtime/start_line_amd64_test.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"runtime/internal/startlinetest"
    	"testing"
    )
    
    // TestStartLineAsm tests the start line metadata of an assembly function. This
    // is only tested on amd64 to avoid the need for a proliferation of per-arch
    // copies of this function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 22 04:34:33 UTC 2022
    - 647 bytes
    - Viewed (0)
  3. src/runtime/syscall_unix_test.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package runtime_test
    
    import (
    	"runtime"
    	"syscall"
    	"testing"
    )
    
    func TestSyscallFlagAlignment(t *testing.T) {
    	// TODO(mknyszek): Check other flags.
    	check := func(name string, got, want int) {
    		if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 03:45:30 UTC 2022
    - 635 bytes
    - Viewed (0)
  4. src/runtime/fastlog2_test.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"math"
    	"runtime"
    	"testing"
    )
    
    func TestFastLog2(t *testing.T) {
    	// Compute the euclidean distance between math.Log2 and the FastLog2
    	// implementation over the range of interest for heap sampling.
    	const randomBitCount = 26
    	var e float64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 784 bytes
    - Viewed (0)
  5. src/runtime/netpoll_os_test.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"runtime"
    	"sync"
    	"testing"
    )
    
    var wg sync.WaitGroup
    
    func init() {
    	runtime.NetpollGenericInit()
    }
    
    func BenchmarkNetpollBreak(b *testing.B) {
    	b.StartTimer()
    	for i := 0; i < b.N; i++ {
    		for j := 0; j < 10; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 520 bytes
    - Viewed (0)
  6. src/runtime/norace_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The file contains tests that cannot run under race detector for some reason.
    //
    //go:build !race
    
    package runtime_test
    
    import (
    	"runtime"
    	"testing"
    )
    
    // Syscall tests split stack between Entersyscall and Exitsyscall under race detector.
    func BenchmarkSyscall(b *testing.B) {
    	benchmarkSyscall(b, 0, 1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 983 bytes
    - Viewed (0)
  7. src/runtime/norace_linux_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // The file contains tests that cannot run under race detector for some reason.
    //
    //go:build !race
    
    package runtime_test
    
    import (
    	"internal/abi"
    	"runtime"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    var newOSProcDone bool
    
    //go:nosplit
    func newOSProcCreated() {
    	newOSProcDone = true
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 915 bytes
    - Viewed (0)
  8. src/runtime/sizeof_test.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"reflect"
    	"runtime"
    	"testing"
    	"unsafe"
    )
    
    // Assert that the size of important structures do not change unexpectedly.
    
    func TestSizeof(t *testing.T) {
    	const _64bit = unsafe.Sizeof(uintptr(0)) == 8
    	var tests = []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 892 bytes
    - Viewed (0)
  9. src/runtime/env_test.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    import (
    	"runtime"
    	"syscall"
    	"testing"
    )
    
    func TestFixedGOROOT(t *testing.T) {
    	// Restore both the real GOROOT environment variable, and runtime's copies:
    	if orig, ok := syscall.Getenv("GOROOT"); ok {
    		defer syscall.Setenv("GOROOT", orig)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 19 11:28:19 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  10. src/runtime/runtime_unix_test.go

    // We need a fast system call to provoke the race,
    // and Close(-1) is nearly universally fast.
    
    //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || plan9
    
    package runtime_test
    
    import (
    	"runtime"
    	"sync"
    	"sync/atomic"
    	"syscall"
    	"testing"
    )
    
    func TestGoroutineProfile(t *testing.T) {
    	// GoroutineProfile used to use the wrong starting sp for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.2K bytes
    - Viewed (0)
Back to top