Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 328 for 2014 (0.05 sec)

  1. src/runtime/race/testdata/chan_test.go

    // Copyright 2011 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 race_test
    
    import (
    	"runtime"
    	"testing"
    	"time"
    )
    
    func TestNoRaceChanSync(t *testing.T) {
    	v := 0
    	_ = v
    	c := make(chan int)
    	go func() {
    		v = 1
    		c <- 0
    	}()
    	<-c
    	v = 2
    }
    
    func TestNoRaceChanSyncRev(t *testing.T) {
    	v := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. src/runtime/malloc_test.go

    // Copyright 2013 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 (
    	"flag"
    	"fmt"
    	"internal/race"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"reflect"
    	"runtime"
    	. "runtime"
    	"strings"
    	"sync/atomic"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    var testMemStatsCount int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. src/slices/zsortanyfunc.go

    // the SymMerge algorithm from Pok-Son Kim and Arne Kutzner, "Stable Minimum
    // Storage Merging by Symmetric Comparisons", in Susanne Albers and Tomasz
    // Radzik, editors, Algorithms - ESA 2004, volume 3221 of Lecture Notes in
    // Computer Science, pages 714-723. Springer, 2004.
    //
    // Let M = m-a and N = b-n. Wolog M < N.
    // The recursion depth is bound by ceil(log(N+M)).
    // The algorithm needs O(M*log(N/M + 1)) calls to data.Less.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  4. src/runtime/gc_test.go

    // Copyright 2011 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 (
    	"fmt"
    	"math/bits"
    	"math/rand"
    	"os"
    	"reflect"
    	"runtime"
    	"runtime/debug"
    	"slices"
    	"strings"
    	"sync"
    	"sync/atomic"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    func TestGcSys(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/encoding/json/stream.go

    // Copyright 2010 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 json
    
    import (
    	"bytes"
    	"errors"
    	"io"
    )
    
    // A Decoder reads and decodes JSON values from an input stream.
    type Decoder struct {
    	r       io.Reader
    	buf     []byte
    	d       decodeState
    	scanp   int   // start of unread data in buf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  6. src/go/types/typestring.go

    // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
    // Source: ../../cmd/compile/internal/types2/typestring.go
    
    // Copyright 2013 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.
    
    // This file implements printing of types.
    
    package types
    
    import (
    	"bytes"
    	"fmt"
    	"sort"
    	"strconv"
    	"strings"
    	"unicode/utf8"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/crypto/tls/conn_test.go

    // Copyright 2010 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 tls
    
    import (
    	"bytes"
    	"io"
    	"net"
    	"testing"
    )
    
    func TestRoundUp(t *testing.T) {
    	if roundUp(0, 16) != 0 ||
    		roundUp(1, 16) != 16 ||
    		roundUp(15, 16) != 16 ||
    		roundUp(16, 16) != 16 ||
    		roundUp(17, 16) != 32 {
    		t.Error("roundUp broken")
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:35:01 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/pcln.go

    // Copyright 2013 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 obj
    
    import (
    	"cmd/internal/goobj"
    	"cmd/internal/objabi"
    	"encoding/binary"
    	"fmt"
    	"log"
    )
    
    // funcpctab writes to dst a pc-value table mapping the code in func to the values
    // returned by valfunc parameterized by arg. The invocation of valfunc to update the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  9. src/cmd/internal/archive/archive.go

    // Copyright 2013 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 archive implements reading of archive files generated by the Go
    // toolchain.
    package archive
    
    import (
    	"bufio"
    	"bytes"
    	"cmd/internal/bio"
    	"cmd/internal/goobj"
    	"errors"
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"strconv"
    	"strings"
    	"time"
    	"unicode/utf8"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  10. src/go/types/stdlib_test.go

    // Copyright 2013 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.
    
    // This file tests types.Check by using it to
    // typecheck the standard library and tests.
    
    package types_test
    
    import (
    	"errors"
    	"fmt"
    	"go/ast"
    	"go/build"
    	"go/importer"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top