Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,802 for unshare (0.13 sec)

  1. src/runtime/testdata/testprog/unsafe.go

    package main
    
    import "unsafe"
    
    func init() {
    	register("panicOnNilAndEleSizeIsZero", panicOnNilAndEleSizeIsZero)
    }
    
    func panicOnNilAndEleSizeIsZero() {
    	var p *struct{}
    	_ = unsafe.Slice(p, 5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 15:45:17 UTC 2022
    - 195 bytes
    - Viewed (0)
  2. src/runtime/unsafe.go

    	if checkptrStraddles(ptr, uintptr(len64)) {
    		throw("checkptr: unsafe.String result straddles multiple allocations")
    	}
    }
    
    func panicunsafestringlen() {
    	panic(errorString("unsafe.String: len out of range"))
    }
    
    func panicunsafestringnilptr() {
    	panic(errorString("unsafe.String: ptr is nil and len is not zero"))
    }
    
    // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeSlice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:51:18 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/unsafe/unsafe.go

    //
    //	p = unsafe.Pointer(uintptr(p) + offset)
    //
    // The most common use of this pattern is to access fields in a struct
    // or elements of an array:
    //
    //	// equivalent to f := unsafe.Pointer(&s.f)
    //	f := unsafe.Pointer(uintptr(unsafe.Pointer(&s)) + unsafe.Offsetof(s.f))
    //
    //	// equivalent to e := unsafe.Pointer(&x[i])
    //	e := unsafe.Pointer(uintptr(unsafe.Pointer(&x[0])) + i*unsafe.Sizeof(x[0]))
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/math/unsafe.go

    func Float32bits(f float32) uint32 { return *(*uint32)(unsafe.Pointer(&f)) }
    
    // Float32frombits returns the floating-point number corresponding
    // to the IEEE 754 binary representation b, with the sign bit of b
    // and the result in the same bit position.
    // Float32frombits(Float32bits(x)) == x.
    func Float32frombits(b uint32) float32 { return *(*float32)(unsafe.Pointer(&b)) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

        /**
         * @param url
         * @param tc
         * @param unshared
         * @throws DcerpcException
         * @throws MalformedURLException
         */
        public DcerpcPipeHandle ( String url, CIFSContext tc, boolean unshared ) throws DcerpcException, MalformedURLException {
            super(tc, DcerpcHandle.parseBinding(url));
            this.pipe = new SmbNamedPipe(makePipeUrl(), pipeFlags, unshared, tc);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jan 26 11:51:07 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/pkg.go

    		}
    	}
    
    	if !opts.IgnoreImports {
    		// Cgo translation adds imports of "unsafe", "runtime/cgo" and "syscall",
    		// except for certain packages, to avoid circular dependencies.
    		if p.UsesCgo() {
    			addImport("unsafe", true)
    		}
    		if p.UsesCgo() && (!p.Standard || !cgoExclude[p.ImportPath]) && cfg.BuildContext.Compiler != "gccgo" {
    			addImport("runtime/cgo", true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/internal/alias/alias.go

    package alias
    
    import "unsafe"
    
    // AnyOverlap reports whether x and y share memory at any (not necessarily
    // corresponding) index. The memory beyond the slice length is ignored.
    func AnyOverlap(x, y []byte) bool {
    	return len(x) > 0 && len(y) > 0 &&
    		uintptr(unsafe.Pointer(&x[0])) <= uintptr(unsafe.Pointer(&y[len(y)-1])) &&
    		uintptr(unsafe.Pointer(&y[0])) <= uintptr(unsafe.Pointer(&x[len(x)-1]))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/runtime/os_linux.go

    	// flags to be set when creating a thread; attempts to share the other
    	// five but leave SYSVSEM unshared will fail with -EINVAL.
    	//
    	// In non-QEMU environments CLONE_SYSVSEM is inconsequential as we do not
    	// use System V semaphores.
    
    	cloneFlags = _CLONE_VM | /* share memory */
    		_CLONE_FS | /* share cwd, etc */
    		_CLONE_FILES | /* share fd table */
    		_CLONE_SIGHAND | /* share sig handler table */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/JavaObjectSerializationCodecTest.kt

                )
            }
        }
    
        @Test
        fun `preserves identity of Externalizable objects`() {
            verifyRoundtripOf({
                val toShare = ExternalizableBean(42)
                toShare to toShare
            }) { (first, second) ->
                assertThat(first.value, equalTo(42))
                assertThat(first, sameInstance(second))
            }
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. src/runtime/metrics/sample.go

    // must share no underlying memory. When in doubt, create a new []Sample from
    // scratch, which is always safe, though may be inefficient.
    //
    // Sample values with names not appearing in [All] will have their Value populated
    // as KindBad to indicate that the name is unknown.
    func Read(m []Sample) {
    	runtime_readMetrics(unsafe.Pointer(&m[0]), len(m), cap(m))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top