HomeSort by relevance Sort by last modified time
    Searched refs:unsafe (Results 26 - 50 of 1292) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/v8/tools/clang/rewrite_scoped_refptr/tests/
temp-assigned-to-raw-var-expected.cc 11 // Case 2: An example of an unsafe conversion, where the scoped_refptr<> is
18 scoped_refptr<Foo> unsafe = GetBuggyFoo(); local
  /prebuilts/go/darwin-x86/src/internal/race/
race.go 11 "unsafe"
16 func Acquire(addr unsafe.Pointer) {
20 func Release(addr unsafe.Pointer) {
24 func ReleaseMerge(addr unsafe.Pointer) {
36 func Read(addr unsafe.Pointer) {
40 func Write(addr unsafe.Pointer) {
44 func ReadRange(addr unsafe.Pointer, len int) {
48 func WriteRange(addr unsafe.Pointer, len int) {
  /prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/route/
syscall.go 11 "unsafe"
16 func keepAlive(p unsafe.Pointer)
21 var p unsafe.Pointer
23 p = unsafe.Pointer(&mib[0])
25 p = unsafe.Pointer(&zero)
27 _, _, errno := syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(p), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
  /prebuilts/go/darwin-x86/test/fixedbugs/
issue4909a.go 7 // Issue 4909: compiler incorrectly accepts unsafe.Offsetof(t.x)
13 "unsafe"
30 const N1 = unsafe.Offsetof(t.X) // ERROR "indirection"
31 const N2 = unsafe.Offsetof(p.X) // ERROR "indirection"
32 const N3 = unsafe.Offsetof(t.B.X) // valid
33 const N4 = unsafe.Offsetof(p.B.X) // valid
34 const N5 = unsafe.Offsetof(t.Method) // ERROR "method value"
35 const N6 = unsafe.Offsetof(p.Method) // ERROR "method value"
bug240.go 9 import . "unsafe" // ERROR "not used"
13 println(unsafe.Sizeof(x)) // ERROR "undefined"
17 After a '.' import, "unsafe" shouldn't be defined as
19 than "unsafe".
bug325.go 9 import "unsafe"
12 var x unsafe.Pointer
13 println(*x) // ERROR "invalid indirect.*unsafe.Pointer"
14 var _ = (unsafe.Pointer)(nil).foo // ERROR "foo"
issue10284.go 8 // type whose underlying type is uintptr to unsafe.Pointer.
12 import "unsafe"
16 var _ unsafe.Pointer = unsafe.Pointer(T(0))
issue14729.go 7 // Issue 14729: structs cannot embed unsafe.Pointer per the spec.
11 import "unsafe"
13 type s struct { unsafe.Pointer } // ERROR "embedded type cannot be a pointer"
14 type s1 struct { p unsafe.Pointer }
issue16306.go 9 import "unsafe"
11 var x = unsafe.Pointer(uintptr(0))
14 _ = map[unsafe.Pointer]int{unsafe.Pointer(uintptr(0)): 0}
  /prebuilts/go/linux-x86/src/internal/race/
race.go 11 "unsafe"
16 func Acquire(addr unsafe.Pointer) {
20 func Release(addr unsafe.Pointer) {
24 func ReleaseMerge(addr unsafe.Pointer) {
36 func Read(addr unsafe.Pointer) {
40 func Write(addr unsafe.Pointer) {
44 func ReadRange(addr unsafe.Pointer, len int) {
48 func WriteRange(addr unsafe.Pointer, len int) {
  /prebuilts/go/linux-x86/src/vendor/golang_org/x/net/route/
syscall.go 11 "unsafe"
16 func keepAlive(p unsafe.Pointer)
21 var p unsafe.Pointer
23 p = unsafe.Pointer(&mib[0])
25 p = unsafe.Pointer(&zero)
27 _, _, errno := syscall.Syscall6(syscall.SYS___SYSCTL, uintptr(p), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
  /prebuilts/go/linux-x86/test/fixedbugs/
issue4909a.go 7 // Issue 4909: compiler incorrectly accepts unsafe.Offsetof(t.x)
13 "unsafe"
30 const N1 = unsafe.Offsetof(t.X) // ERROR "indirection"
31 const N2 = unsafe.Offsetof(p.X) // ERROR "indirection"
32 const N3 = unsafe.Offsetof(t.B.X) // valid
33 const N4 = unsafe.Offsetof(p.B.X) // valid
34 const N5 = unsafe.Offsetof(t.Method) // ERROR "method value"
35 const N6 = unsafe.Offsetof(p.Method) // ERROR "method value"
bug240.go 9 import . "unsafe" // ERROR "not used"
13 println(unsafe.Sizeof(x)) // ERROR "undefined"
17 After a '.' import, "unsafe" shouldn't be defined as
19 than "unsafe".
bug325.go 9 import "unsafe"
12 var x unsafe.Pointer
13 println(*x) // ERROR "invalid indirect.*unsafe.Pointer"
14 var _ = (unsafe.Pointer)(nil).foo // ERROR "foo"
issue10284.go 8 // type whose underlying type is uintptr to unsafe.Pointer.
12 import "unsafe"
16 var _ unsafe.Pointer = unsafe.Pointer(T(0))
issue14729.go 7 // Issue 14729: structs cannot embed unsafe.Pointer per the spec.
11 import "unsafe"
13 type s struct { unsafe.Pointer } // ERROR "embedded type cannot be a pointer"
14 type s1 struct { p unsafe.Pointer }
issue16306.go 9 import "unsafe"
11 var x = unsafe.Pointer(uintptr(0))
14 _ = map[unsafe.Pointer]int{unsafe.Pointer(uintptr(0)): 0}
  /prebuilts/go/darwin-x86/src/runtime/
os_solaris.go 7 import "unsafe"
35 libcall.fn = uintptr(unsafe.Pointer(fn))
37 libcall.args = uintptr(unsafe.Pointer(fn)) // it's unused but must be non-nil, otherwise crashes
38 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&libcall))
45 libcall.fn = uintptr(unsafe.Pointer(fn))
48 libcall.args = uintptr(noescape(unsafe.Pointer(&a1)))
49 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&libcall))
56 libcall.fn = uintptr(unsafe.Pointer(fn)
    [all...]
race0.go 12 "unsafe"
19 func raceReadObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
20 func raceWriteObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
25 func racemapshadow(addr unsafe.Pointer, size uintptr) { throw("race") }
26 func racewritepc(addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
27 func racereadpc(addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
28 func racereadrangepc(addr unsafe.Pointer, sz, callerpc, pc uintptr) { throw("race") }
29 func racewriterangepc(addr unsafe.Pointer, sz, callerpc, pc uintptr) { throw("race") }
30 func raceacquire(addr unsafe.Pointer) { throw("race") }
31 func raceacquireg(gp *g, addr unsafe.Pointer) { throw("race")
    [all...]
mem_plan9.go 7 import "unsafe"
23 func (p memHdrPtr) ptr() *memHdr { return (*memHdr)(unsafe.Pointer(p)) }
24 func (p *memHdrPtr) set(x *memHdr) { *p = memHdrPtr(unsafe.Pointer(x)) }
26 func memAlloc(n uintptr) unsafe.Pointer {
39 p = (*memHdr)(add(unsafe.Pointer(p), p.size))
42 return unsafe.Pointer(p)
49 func memFree(ap unsafe.Pointer, n uintptr) {
61 if bpn < uintptr(unsafe.Pointer(p)) {
63 if bpn+bp.size == uintptr(unsafe.Pointer(p)) {
73 if bpn > uintptr(unsafe.Pointer(p)) && bpn < uintptr(unsafe.Pointer(p.next))
    [all...]
  /prebuilts/go/linux-x86/src/runtime/
os_solaris.go 7 import "unsafe"
35 libcall.fn = uintptr(unsafe.Pointer(fn))
37 libcall.args = uintptr(unsafe.Pointer(fn)) // it's unused but must be non-nil, otherwise crashes
38 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&libcall))
45 libcall.fn = uintptr(unsafe.Pointer(fn))
48 libcall.args = uintptr(noescape(unsafe.Pointer(&a1)))
49 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&libcall))
56 libcall.fn = uintptr(unsafe.Pointer(fn)
    [all...]
race0.go 12 "unsafe"
19 func raceReadObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
20 func raceWriteObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
25 func racemapshadow(addr unsafe.Pointer, size uintptr) { throw("race") }
26 func racewritepc(addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
27 func racereadpc(addr unsafe.Pointer, callerpc, pc uintptr) { throw("race") }
28 func racereadrangepc(addr unsafe.Pointer, sz, callerpc, pc uintptr) { throw("race") }
29 func racewriterangepc(addr unsafe.Pointer, sz, callerpc, pc uintptr) { throw("race") }
30 func raceacquire(addr unsafe.Pointer) { throw("race") }
31 func raceacquireg(gp *g, addr unsafe.Pointer) { throw("race")
    [all...]
mem_plan9.go 7 import "unsafe"
23 func (p memHdrPtr) ptr() *memHdr { return (*memHdr)(unsafe.Pointer(p)) }
24 func (p *memHdrPtr) set(x *memHdr) { *p = memHdrPtr(unsafe.Pointer(x)) }
26 func memAlloc(n uintptr) unsafe.Pointer {
39 p = (*memHdr)(add(unsafe.Pointer(p), p.size))
42 return unsafe.Pointer(p)
49 func memFree(ap unsafe.Pointer, n uintptr) {
61 if bpn < uintptr(unsafe.Pointer(p)) {
63 if bpn+bp.size == uintptr(unsafe.Pointer(p)) {
73 if bpn > uintptr(unsafe.Pointer(p)) && bpn < uintptr(unsafe.Pointer(p.next))
    [all...]
  /art/test/555-UnsafeGetLong-regression/src/
Main.java 18 import sun.misc.Unsafe;
27 private static Unsafe getUnsafe() throws Exception {
28 Class<?> unsafeClass = Class.forName("sun.misc.Unsafe");
31 return (Unsafe) f.get(null);
36 Unsafe unsafe = getUnsafe(); local
38 testUnsafeGetLong(unsafe);
41 public static void testUnsafeGetLong(Unsafe unsafe) throws Exception {
44 long lvar = unsafe.objectFieldOffset(longField)
    [all...]
  /libcore/ojluni/src/main/java/sun/nio/ch/
EPoll.java 29 import sun.misc.Unsafe;
38 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:EPoll
69 return unsafe.allocateMemory(count * SIZEOF_EPOLLEVENT);
76 unsafe.freeMemory(address);
90 return unsafe.getInt(eventAddress + OFFSETOF_FD);
97 return unsafe.getInt(eventAddress + OFFSETOF_EVENTS);

Completed in 1084 milliseconds

12 3 4 5 6 7 8 91011>>