/external/v8/tools/clang/rewrite_scoped_refptr/tests/ |
local-returned-as-raw-expected.cc | 11 // An example of an unsafe conversion, where the object is freed by the time the 16 scoped_refptr<Foo> unsafe(new Foo); 17 return unsafe;
|
local-returned-as-raw-original.cc | 11 // An example of an unsafe conversion, where the object is freed by the time the 16 scoped_refptr<Foo> unsafe(new Foo); 17 return unsafe;
|
temp-assigned-to-raw-var-original.cc | 11 // Case 2: An example of an unsafe conversion, where the scoped_refptr<> is 18 Foo* unsafe = GetBuggyFoo(); local
|
/art/test/004-UnsafeTest/src/ |
Main.java | 18 import sun.misc.Unsafe; 42 private static Unsafe getUnsafe() throws NoSuchFieldException, IllegalAccessException { 43 Class<?> unsafeClass = Unsafe.class; 46 return (Unsafe) f.get(null); 51 Unsafe unsafe = getUnsafe(); local 53 testArrayBaseOffset(unsafe); 54 testArrayIndexScale(unsafe); 55 testGetAndPutAndCAS(unsafe); 56 testGetAndPutVolatile(unsafe); [all...] |
/prebuilts/go/darwin-x86/src/cmd/vet/testdata/cgo/ |
cgo.go | 12 import "unsafe" 16 C.f(*(*unsafe.Pointer)(unsafe.Pointer(&c))) // ERROR "embedded pointer" 17 C.f(unsafe.Pointer(&c)) // ERROR "embedded pointer" 20 C.f(*(*unsafe.Pointer)(unsafe.Pointer(&m))) // ERROR "embedded pointer" 21 C.f(unsafe.Pointer(&m)) // ERROR "embedded pointer" 24 C.f(*(*unsafe.Pointer)(unsafe.Pointer(&f))) // ERROR "embedded pointer" 25 C.f(unsafe.Pointer(&f)) // ERROR "embedded pointer [all...] |
/prebuilts/go/linux-x86/src/cmd/vet/testdata/cgo/ |
cgo.go | 12 import "unsafe" 16 C.f(*(*unsafe.Pointer)(unsafe.Pointer(&c))) // ERROR "embedded pointer" 17 C.f(unsafe.Pointer(&c)) // ERROR "embedded pointer" 20 C.f(*(*unsafe.Pointer)(unsafe.Pointer(&m))) // ERROR "embedded pointer" 21 C.f(unsafe.Pointer(&m)) // ERROR "embedded pointer" 24 C.f(*(*unsafe.Pointer)(unsafe.Pointer(&f))) // ERROR "embedded pointer" 25 C.f(unsafe.Pointer(&f)) // ERROR "embedded pointer [all...] |
/prebuilts/go/darwin-x86/src/cmd/vet/testdata/ |
unsafeptr.go | 9 "unsafe" 13 var x unsafe.Pointer 15 x = unsafe.Pointer(y) // ERROR "possible misuse of unsafe.Pointer" 20 x = unsafe.Pointer(uintptr(x) + 1) 21 x = unsafe.Pointer(1 + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer" 22 x = unsafe.Pointer(uintptr(x) + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer" 23 x = unsafe.Pointer(uintptr(x) - 1 [all...] |
/prebuilts/go/linux-x86/src/cmd/vet/testdata/ |
unsafeptr.go | 9 "unsafe" 13 var x unsafe.Pointer 15 x = unsafe.Pointer(y) // ERROR "possible misuse of unsafe.Pointer" 20 x = unsafe.Pointer(uintptr(x) + 1) 21 x = unsafe.Pointer(1 + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer" 22 x = unsafe.Pointer(uintptr(x) + uintptr(x)) // ERROR "possible misuse of unsafe.Pointer" 23 x = unsafe.Pointer(uintptr(x) - 1 [all...] |
/prebuilts/go/darwin-x86/test/ |
sizeof.go | 9 import "unsafe" 33 // Test unsafe.Sizeof, unsafe.Alignof, and unsafe.Offsetof all return uintptr. 34 isUintptr(unsafe.Sizeof(t)) 35 isUintptr(unsafe.Alignof(t)) 36 isUintptr(unsafe.Offsetof(t.X)) 39 if unsafe.Offsetof(t2.C) != 8 { 40 println(unsafe.Offsetof(t2.C), "!= 8") 41 panic("unsafe.Offsetof(t2.C) != 8" [all...] |
/prebuilts/go/linux-x86/test/ |
sizeof.go | 9 import "unsafe" 33 // Test unsafe.Sizeof, unsafe.Alignof, and unsafe.Offsetof all return uintptr. 34 isUintptr(unsafe.Sizeof(t)) 35 isUintptr(unsafe.Alignof(t)) 36 isUintptr(unsafe.Offsetof(t.X)) 39 if unsafe.Offsetof(t2.C) != 8 { 40 println(unsafe.Offsetof(t2.C), "!= 8") 41 panic("unsafe.Offsetof(t2.C) != 8" [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/ |
bug319.go | 9 import "unsafe" 14 a := uint64(uintptr(unsafe.Pointer(&x))) 15 b := uint32(uintptr(unsafe.Pointer(&x))) 16 c := uint16(uintptr(unsafe.Pointer(&x))) 17 d := int64(uintptr(unsafe.Pointer(&x))) 18 e := int32(uintptr(unsafe.Pointer(&x))) 19 f := int16(uintptr(unsafe.Pointer(&x)))
|
bug292.go | 11 import "unsafe" 19 if unsafe.Offsetof(t.X) != 0 || unsafe.Offsetof(t.Y) != 1 { 20 println("BUG", unsafe.Offsetof(t.X), unsafe.Offsetof(t.Y))
|
bug390.go | 7 // Issue 2627 -- unsafe.Pointer type isn't handled nicely in some errors 11 import "unsafe" 15 _ = unsafe.Pointer(x) - unsafe.Pointer(x) // ERROR "operator - not defined on unsafe.Pointer|expected integer, floating, or complex type"
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
bug319.go | 9 import "unsafe" 14 a := uint64(uintptr(unsafe.Pointer(&x))) 15 b := uint32(uintptr(unsafe.Pointer(&x))) 16 c := uint16(uintptr(unsafe.Pointer(&x))) 17 d := int64(uintptr(unsafe.Pointer(&x))) 18 e := int32(uintptr(unsafe.Pointer(&x))) 19 f := int16(uintptr(unsafe.Pointer(&x)))
|
bug292.go | 11 import "unsafe" 19 if unsafe.Offsetof(t.X) != 0 || unsafe.Offsetof(t.Y) != 1 { 20 println("BUG", unsafe.Offsetof(t.X), unsafe.Offsetof(t.Y))
|
bug390.go | 7 // Issue 2627 -- unsafe.Pointer type isn't handled nicely in some errors 11 import "unsafe" 15 _ = unsafe.Pointer(x) - unsafe.Pointer(x) // ERROR "operator - not defined on unsafe.Pointer|expected integer, floating, or complex type"
|
/prebuilts/go/darwin-x86/src/internal/race/ |
norace.go | 10 "unsafe" 15 func Acquire(addr unsafe.Pointer) { 18 func Release(addr unsafe.Pointer) { 21 func ReleaseMerge(addr unsafe.Pointer) { 30 func Read(addr unsafe.Pointer) { 33 func Write(addr unsafe.Pointer) { 36 func ReadRange(addr unsafe.Pointer, len int) { 39 func WriteRange(addr unsafe.Pointer, len int) {
|
/prebuilts/go/linux-x86/src/internal/race/ |
norace.go | 10 "unsafe" 15 func Acquire(addr unsafe.Pointer) { 18 func Release(addr unsafe.Pointer) { 21 func ReleaseMerge(addr unsafe.Pointer) { 30 func Read(addr unsafe.Pointer) { 33 func Write(addr unsafe.Pointer) { 36 func ReadRange(addr unsafe.Pointer, len int) { 39 func WriteRange(addr unsafe.Pointer, len int) {
|
/prebuilts/go/darwin-x86/src/runtime/ |
syscall_solaris.go | 7 import "unsafe" 34 args: uintptr(unsafe.Pointer(&a1)), 37 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call)) 47 args: uintptr(unsafe.Pointer(&a1)), 49 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call)) 60 fn: uintptr(unsafe.Pointer(&libc_chdir)), 62 args: uintptr(unsafe.Pointer(&path)), 64 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call) [all...] |
/prebuilts/go/linux-x86/src/runtime/ |
syscall_solaris.go | 7 import "unsafe" 34 args: uintptr(unsafe.Pointer(&a1)), 37 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call)) 47 args: uintptr(unsafe.Pointer(&a1)), 49 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call)) 60 fn: uintptr(unsafe.Pointer(&libc_chdir)), 62 args: uintptr(unsafe.Pointer(&path)), 64 asmcgocall(unsafe.Pointer(&asmsysvicall6), unsafe.Pointer(&call) [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/issue4879.dir/ |
a.go | 4 "unsafe" 8 root unsafe.Pointer 19 root: unsafe.Pointer(&nodeLoc{}), 25 root: unsafe.Pointer(&slice{}), 30 root: unsafe.Pointer(&maptype{}),
|
/prebuilts/go/linux-x86/test/fixedbugs/issue4879.dir/ |
a.go | 4 "unsafe" 8 root unsafe.Pointer 19 root: unsafe.Pointer(&nodeLoc{}), 25 root: unsafe.Pointer(&slice{}), 30 root: unsafe.Pointer(&maptype{}),
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
NativeObject.java | 32 import sun.misc.Unsafe; 43 protected static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:NativeObject 75 this.allocationAddress = unsafe.allocateMemory(size); 79 long a = unsafe.allocateMemory(size + ps); 127 newAddress = unsafe.getLong(offset + address); 130 newAddress = unsafe.getInt(offset + address) & 0x00000000FFFFFFFF; 176 return unsafe.getByte(offset + address); 190 unsafe.putByte(offset + address, value) [all...] |
/prebuilts/go/darwin-x86/test/fixedbugs/issue16317.dir/ |
a.go | 7 import "unsafe" 9 func ConstUnsafePointer() unsafe.Pointer { 10 return unsafe.Pointer(uintptr(0))
|
/prebuilts/go/linux-x86/test/fixedbugs/issue16317.dir/ |
a.go | 7 import "unsafe" 9 func ConstUnsafePointer() unsafe.Pointer { 10 return unsafe.Pointer(uintptr(0))
|