Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for cgocheck2 (1.62 sec)

  1. src/internal/goexperiment/exp_cgocheck2_on.go

    // Code generated by mkconsts.go. DO NOT EDIT.
    
    //go:build goexperiment.cgocheck2
    
    package goexperiment
    
    const CgoCheck2 = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 151 bytes
    - Viewed (0)
  2. src/internal/goexperiment/exp_cgocheck2_off.go

    // Code generated by mkconsts.go. DO NOT EDIT.
    
    //go:build !goexperiment.cgocheck2
    
    package goexperiment
    
    const CgoCheck2 = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 153 bytes
    - Viewed (0)
  3. src/runtime/atomic_pointer.go

    //
    //go:nosplit
    func atomicstorep(ptr unsafe.Pointer, new unsafe.Pointer) {
    	if writeBarrier.enabled {
    		atomicwb((*unsafe.Pointer)(ptr), new)
    	}
    	if goexperiment.CgoCheck2 {
    		cgoCheckPtrWrite((*unsafe.Pointer)(ptr), new)
    	}
    	atomic.StorepNoWB(noescape(ptr), new)
    }
    
    // atomic_storePointer is the implementation of runtime/internal/UnsafePointer.Store
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/runtime/cgocheck.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Code to check that pointer writes follow the cgo rules.
    // These functions are invoked when GOEXPERIMENT=cgocheck2 is enabled.
    
    package runtime
    
    import (
    	"internal/abi"
    	"internal/goarch"
    	"unsafe"
    )
    
    const cgoWriteBarrierFail = "unpinned Go pointer stored into non-Go memory"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testerrors/ptr_test.go

    	// executions in parallel, to avoid overloading the system.
    	runcmd := func(cgocheck string) ([]byte, error) {
    		csem <- true
    		defer func() { <-csem }()
    		x := exe
    		if cgocheck == "2" {
    			x = exe2
    			cgocheck = "1"
    		}
    		cmd := exec.Command(x, pt.name)
    		cmd.Env = append(os.Environ(), "GODEBUG=cgocheck="+cgocheck)
    		return cmd.CombinedOutput()
    	}
    
    	if pt.expensive {
    		buf, err := runcmd("1")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  6. src/internal/goexperiment/flags.go

    	// Arenas causes the "arena" standard library package to be visible
    	// to the outside world.
    	Arenas bool
    
    	// CgoCheck2 enables an expensive cgo rule checker.
    	// When this experiment is enabled, cgo rule checks occur regardless
    	// of the GODEBUG=cgocheck setting provided at runtime.
    	CgoCheck2 bool
    
    	// LoopVar changes loop semantics so that each iteration gets its own
    	// copy of the iteration variable.
    	LoopVar bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 16:19:47 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. test/fixedbugs/issue20250.go

    // errorcheck -0 -live -l
    
    //go:build !goexperiment.cgocheck2
    
    // Copyright 2017 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.
    
    // Issue 20250: liveness differed with concurrent compilation
    // due to propagation of addrtaken to outer variables for
    // closure variables.
    
    package p
    
    type T struct {
    	s [2]string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 727 bytes
    - Viewed (0)
  8. test/codegen/structs.go

    // asmcheck
    
    //go:build !goexperiment.cgocheck2
    
    // 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 codegen
    
    // This file contains code generation tests related to the handling of
    // struct types.
    
    // ------------- //
    //    Zeroing    //
    // ------------- //
    
    type Z1 struct {
    	a, b, c int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 923 bytes
    - Viewed (0)
  9. test/fixedbugs/issue15747.go

    // errorcheck -0 -live
    
    //go:build !goexperiment.cgocheck2
    
    // Copyright 2016 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.
    
    // Issue 15747: liveness analysis was marking heap-escaped params live too much,
    // and worse was using the wrong bitmap bits to do so.
    
    package p
    
    var global *[]byte
    
    type Q struct{}
    
    type T struct{ M string }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/writebarrier.go

    			wbsym := f.fe.Syslook("writeBarrier")
    			wbaddr = f.Entry.NewValue1A(initpos, OpAddr, f.Config.Types.UInt32Ptr, wbsym, sb)
    			wbZero = f.fe.Syslook("wbZero")
    			wbMove = f.fe.Syslook("wbMove")
    			if buildcfg.Experiment.CgoCheck2 {
    				cgoCheckPtrWrite = f.fe.Syslook("cgoCheckPtrWrite")
    				cgoCheckMemmove = f.fe.Syslook("cgoCheckMemmove")
    			}
    			const0 = f.ConstInt32(f.Config.Types.UInt32, 0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
Back to top