HomeSort by relevance Sort by last modified time
    Searched defs:unsafe (Results 1 - 25 of 33) sorted by null

1 2

  /external/chromium_org/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
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;
39 private static Unsafe getUnsafe() throws Exception {
40 Class<?> unsafeClass = Class.forName("sun.misc.Unsafe");
43 return (Unsafe) f.get(null);
47 Unsafe unsafe = getUnsafe(); local
48 check(unsafe.arrayBaseOffset(boolean[].class), vmArrayBaseOffset(boolean[].class),
49 "Unsafe.arrayBaseOffset(boolean[])");
50 check(unsafe.arrayBaseOffset(byte[].class), vmArrayBaseOffset(byte[].class),
51 "Unsafe.arrayBaseOffset(byte[])")
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/locks/
LockSupport.java 8 import sun.misc.Unsafe;
95 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:LockSupport
100 parkBlockerOffset = unsafe.objectFieldOffset
107 unsafe.putObject(t, parkBlockerOffset, arg);
123 unsafe.unpark(thread);
157 unsafe.park(false, 0L);
197 unsafe.park(false, nanos);
238 unsafe.park(true, deadline)
    [all...]
AbstractQueuedLongSynchronizer.java 12 import sun.misc.Unsafe;
315 return unsafe.compareAndSwapLong(this, stateOffset, expect, update);
2009 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AbstractQueuedLongSynchronizer
    [all...]
AbstractQueuedSynchronizer.java 12 import sun.misc.Unsafe;
545 return unsafe.compareAndSwapInt(this, stateOffset, expect, update);
2237 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AbstractQueuedSynchronizer
    [all...]
  /libcore/luni/src/main/java/java/util/concurrent/atomic/
AtomicReference.java 8 import sun.misc.Unsafe;
21 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicReference
26 valueOffset = unsafe.objectFieldOffset
73 unsafe.putOrderedObject(this, valueOffset, newValue);
85 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
101 return unsafe.compareAndSwapObject(this, valueOffset, expect, update);
AtomicIntegerArray.java 8 import sun.misc.Unsafe;
21 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicIntegerArray
22 private static final int base = unsafe.arrayBaseOffset(int[].class);
27 int scale = unsafe.arrayIndexScale(int[].class);
86 return unsafe.getIntVolatile(array, offset);
96 unsafe.putIntVolatile(array, checkedByteOffset(i), newValue);
107 unsafe.putOrderedInt(array, checkedByteOffset(i), newValue);
142 return unsafe.compareAndSwapInt(array, offset, expect, update)
    [all...]
AtomicIntegerFieldUpdater.java 10 import sun.misc.Unsafe;
241 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicIntegerFieldUpdater.AtomicIntegerFieldUpdaterImpl
283 offset = unsafe.objectFieldOffset(field);
312 return unsafe.compareAndSwapInt(obj, offset, expect, update);
317 return unsafe.compareAndSwapInt(obj, offset, expect, update);
322 unsafe.putIntVolatile(obj, offset, newValue);
327 unsafe.putOrderedInt(obj, offset, newValue);
332 return unsafe.getIntVolatile(obj, offset)
    [all...]
AtomicLongArray.java 8 import sun.misc.Unsafe;
20 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicLongArray
21 private static final int base = unsafe.arrayBaseOffset(long[].class);
26 int scale = unsafe.arrayIndexScale(long[].class);
85 return unsafe.getLongVolatile(array, offset);
95 unsafe.putLongVolatile(array, checkedByteOffset(i), newValue);
106 unsafe.putOrderedLong(array, checkedByteOffset(i), newValue);
141 return unsafe.compareAndSwapLong(array, offset, expect, update)
    [all...]
AtomicReferenceArray.java 11 import sun.misc.Unsafe;
25 private static final Unsafe unsafe; field in class:AtomicReferenceArray
33 unsafe = Unsafe.getUnsafe();
34 arrayFieldOffset = unsafe.objectFieldOffset
36 base = unsafe.arrayBaseOffset(Object[].class);
37 int scale = unsafe.arrayIndexScale(Object[].class);
100 return (E) unsafe.getObjectVolatile(array, offset);
110 unsafe.putObjectVolatile(array, checkedByteOffset(i), newValue)
    [all...]
AtomicReferenceFieldUpdater.java 9 import sun.misc.Unsafe;
157 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl
218 offset = unsafe.objectFieldOffset(field);
260 return unsafe.compareAndSwapObject(obj, offset, expect, update);
269 return unsafe.compareAndSwapObject(obj, offset, expect, update);
277 unsafe.putObjectVolatile(obj, offset, newValue);
285 unsafe.putOrderedObject(obj, offset, newValue);
292 return (V)unsafe.getObjectVolatile(obj, offset)
    [all...]
AtomicBoolean.java 8 import sun.misc.Unsafe;
23 // setup to use Unsafe.compareAndSwapInt for updates
24 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicBoolean
29 valueOffset = unsafe.objectFieldOffset
72 return unsafe.compareAndSwapInt(this, valueOffset, e, u);
90 return unsafe.compareAndSwapInt(this, valueOffset, e, u);
110 unsafe.putOrderedInt(this, valueOffset, v);
AtomicLongFieldUpdater.java 10 import sun.misc.Unsafe;
241 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicLongFieldUpdater.CASUpdater
282 offset = unsafe.objectFieldOffset(field);
294 return unsafe.compareAndSwapLong(obj, offset, expect, update);
299 return unsafe.compareAndSwapLong(obj, offset, expect, update);
304 unsafe.putLongVolatile(obj, offset, newValue);
309 unsafe.putOrderedLong(obj, offset, newValue);
314 return unsafe.getLongVolatile(obj, offset)
335 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicLongFieldUpdater.LockedUpdater
    [all...]
AtomicInteger.java 8 import sun.misc.Unsafe;
26 // setup to use Unsafe.compareAndSwapInt for updates
27 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicInteger
32 valueOffset = unsafe.objectFieldOffset
79 unsafe.putOrderedInt(this, valueOffset, newValue);
106 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
122 return unsafe.compareAndSwapInt(this, valueOffset, expect, update);
AtomicLong.java 8 import sun.misc.Unsafe;
26 // setup to use Unsafe.compareAndSwapLong for updates
27 private static final Unsafe unsafe = Unsafe.getUnsafe(); field in class:AtomicLong
32 * compareAndSwap for longs. While the Unsafe.compareAndSwapLong
46 valueOffset = unsafe.objectFieldOffset
93 unsafe.putOrderedLong(this, valueOffset, newValue);
120 return unsafe.compareAndSwapLong(this, valueOffset, expect, update);
136 return unsafe.compareAndSwapLong(this, valueOffset, expect, update)
    [all...]
  /external/dexmaker/src/mockito/java/com/google/dexmaker/mockito/
UnsafeAllocator.java 34 // public class Unsafe {
38 Class<?> unsafeClass = Class.forName("sun.misc.Unsafe");
41 final Object unsafe = f.get(null); local
47 return (T) allocateInstance.invoke(unsafe, c);
  /external/chromium_org/third_party/libjingle/source/talk/xmllite/
xmlprinter.cc 149 size_t unsafe = text.find_first_of("<>&\"", safe); local
150 if (unsafe == std::string::npos)
151 unsafe = text.length();
152 *pout_ << text.substr(safe, unsafe - safe);
153 if (unsafe == text.length())
155 switch (text[unsafe]) {
161 safe = unsafe + 1;
170 size_t unsafe = text.find_first_of("<>&", safe); local
171 if (unsafe == std::string::npos)
172 unsafe = text.length()
    [all...]
  /external/chromium_org/third_party/webrtc/libjingle/xmllite/
xmlprinter.cc 132 size_t unsafe = text.find_first_of("<>&\"", safe); local
133 if (unsafe == std::string::npos)
134 unsafe = text.length();
135 *pout_ << text.substr(safe, unsafe - safe);
136 if (unsafe == text.length())
138 switch (text[unsafe]) {
144 safe = unsafe + 1;
153 size_t unsafe = text.find_first_of("<>&", safe); local
154 if (unsafe == std::string::npos)
155 unsafe = text.length()
    [all...]
  /external/chromium_org/third_party/jinja2/
sandbox.py 25 #: attributes of function objects that are considered unsafe.
29 #: unsafe method attributes. function attributes are unsafe for methods too
32 #: unsafe generator attirbutes.
107 def unsafe(f): function
108 """Marks a function or method as unsafe.
112 @unsafe
174 for typespec, unsafe in _mutable_spec:
176 return attr in unsafe
281 affect the `unsafe` decorator from this module
    [all...]
  /external/chromium_org/v8/src/
hydrogen-bch.cc 118 * (loop back to the header) without meeting a check, or UNSAFE is set if
125 bool unsafe = false; local
144 unsafe = true;
174 return unsafe ? OPTIMISTICALLY_HOISTABLE : HOISTABLE;
  /external/chromium_org/content/browser/fileapi/
copy_or_move_operation_delegate_unittest.cc 89 std::string unsafe = dest_platform_path.BaseName().AsUTF8Unsafe(); variable
90 if (unsafe.find(reject_string_) != std::string::npos) {
  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
JavaBridgeBasicsTest.java 717 public String unsafe() { return "bar"; } method in class:JavaBridgeBasicsTest.Test
731 // unsafe() should be able to be called because we are not in safe mode.
733 "unsafeTestObject.getTest().unsafe()"));
741 // unsafe() should not be able to be called because we are in safe mode.
742 assertRaisesException("safeTestObject.getTest().unsafe()");
744 "typeof safeTestObject.getTest().unsafe"));
    [all...]
  /external/icu/icu4c/source/i18n/
rulebasedcollator.cpp 1119 UBool unsafe = FALSE; local
    [all...]
  /prebuilts/tools/common/m2/repository/com/google/dexmaker/dexmaker-mockito/1.0/
dexmaker-mockito-1.0.jar 

Completed in 640 milliseconds

1 2