Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test27660 (0.18 sec)

  1. src/cmd/cgo/internal/test/test.go

    // attempt to reproduce the memory corruption described in #27660.
    // The bug was very timing sensitive; at the time of writing this
    // test would only trigger the bug about once out of every five runs.
    
    func test27660(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	ints := make([]int, 100)
    	locks := make([]sync.Mutex, 100)
    	// Slowly create threads so that ThreadSanitizer is forced to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/testx.go

    		t.Errorf("C.CheckIssue6907C() == %d, want %d", got, 1)
    	}
    }
    
    // issue 7665
    
    var bad7665 unsafe.Pointer = C.f7665
    var good7665 uintptr = uintptr(C.f7665)
    
    func test7665(t *testing.T) {
    	if bad7665 == nil || uintptr(bad7665) != good7665 {
    		t.Errorf("ptrs = %p, %#x, want same non-nil pointer", bad7665, good7665)
    	}
    }
    
    // issue 7978
    
    var issue7978sync uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
Back to top