Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for we (0.31 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/main6.c

    	int diff;
    
    	gettimeofday(&tvstart, NULL);
    
    	go_start_profile();
    
    	// Busy wait so we have something to profile.
    	// If we just sleep the profiling signal will never fire.
    	while (1) {
    		gettimeofday(&tvnow, NULL);
    		diff = (tvnow.tv_sec - tvstart.tv_sec) * 1000 * 1000 + (tvnow.tv_usec - tvstart.tv_usec);
    
    		// Profile frequency is 100Hz so we should definitely
    		// get a signal in 50 milliseconds.
    		if (diff > 50 * 1000)
    			break;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 830 bytes
    - Viewed (0)
  2. .github/ISSUE_TEMPLATE/02-pkgsite-removal.yml

        attributes:
          label: "What is the reason that you could not retract this package instead?"
          description: |
            Requesting we remove a module here only hides the generated documentation on pkg.go.dev.
            It does not affect the behaviour of proxy.golang.org or the go command.
            Instead we recommend using the retract directive which will be processed by all 3 of the above.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 04 23:31:17 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testsanitizers/msan_test.go

    		{src: "msan7.go"},
    		{src: "msan8.go"},
    		{src: "msan_fail.go", wantErr: true},
    		// This may not always fail specifically due to MSAN. It may sometimes
    		// fail because of a fault. However, we don't care what kind of error we
    		// get here, just that we get an error. This is an MSAN test because without
    		// MSAN it would not fail deterministically.
    		{src: "arena_fail.go", wantErr: true, experiments: []string{"arenas"}},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue18146.go

    	}
    
    	attempts := 1000
    	threads := 4
    
    	// Restrict the number of attempts based on RLIMIT_NPROC.
    	// Tediously, RLIMIT_NPROC was left out of the syscall package,
    	// probably because it is not in POSIX.1, so we define it here.
    	// It is not defined on Solaris.
    	var nproc int
    	setNproc := true
    	switch runtime.GOOS {
    	default:
    		setNproc = false
    	case "aix":
    		nproc = 9
    	case "linux":
    		nproc = 6
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/tokenizer.go

    	var s scanner.Scanner
    	s.Init(r)
    	// Newline is like a semicolon; other space characters are fine.
    	s.Whitespace = 1<<'\t' | 1<<'\r' | 1<<' '
    	// Don't skip comments: we need to count newlines.
    	s.Mode = scanner.ScanChars |
    		scanner.ScanFloats |
    		scanner.ScanIdents |
    		scanner.ScanInts |
    		scanner.ScanStrings |
    		scanner.ScanComments
    	s.Position.Filename = name
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 20:35:21 UTC 2022
    - 3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/issue23555.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.
    
    //go:build cgo
    
    // Test that we can have two identical cgo packages in a single binary.
    // No runtime test; just make sure it compiles.
    
    package cgotest
    
    import (
    	_ "cmd/cgo/internal/test/issue23555a"
    	_ "cmd/cgo/internal/test/issue23555b"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 403 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testerrors/ptr_test.go

    		     void f25() { GoStr25(); }`,
    		fail: true,
    	},
    	{
    		// Don't check non-pointer data.
    		// Uses unsafe code to get a pointer we shouldn't check.
    		// Although we use unsafe, the uintptr represents an integer
    		// that happens to have the same representation as a pointer;
    		// that is, we are testing something that is not unsafe.
    		name: "ptrdata1",
    		c: `#include <stdlib.h>
    		    void f26(void* p) {}`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testgodefs/testdata/bitfields.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.
    
    //go:build ignore
    
    package main
    
    // This file tests that we don't generate an incorrect field location
    // for a bitfield that appears aligned.
    
    /*
    struct bitfields {
        unsigned int B1     :  5;
        unsigned int B2     :  1;
        unsigned int B3     :  1;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 838 bytes
    - Viewed (0)
  9. README.md

    operating system and architecture, visit
    https://go.dev/doc/install/source
    for source installation instructions.
    
    ### Contributing
    
    Go is the work of thousands of contributors. We appreciate your help!
    
    To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
    
    Note that the Go project uses the issue tracker for bug reports and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 20:14:56 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/c-life.c

    #include <assert.h>
    #include "life.h"
    #include "_cgo_export.h"
    
    const int MYCONST = 0;
    
    // Do the actual manipulation of the life board in C.  This could be
    // done easily in Go, we are just using C for demonstration
    // purposes.
    void
    Step(int x, int y, int *a, int *n)
    {
    	struct GoStart_return r;
    
    	// Use Go to start 4 goroutines each of which handles 1/4 of the
    	// board.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top