Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 5 of 5) sorted by relevance

/art/test/2235-JdkUnsafeTest/src/
DMain.java334 TestVolatileClass tv = new TestVolatileClass(); in testGetAndPutVolatile() local
339 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
342 unsafe.putIntVolatile(tv, volatileIntOffset, intValue); in testGetAndPutVolatile()
343 check(tv.volatileIntVar, intValue, "Unsafe.putIntVolatile(Object, long, int)"); in testGetAndPutVolatile()
344 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
351 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
354 unsafe.putLongVolatile(tv, volatileLongOffset, longValue); in testGetAndPutVolatile()
355 check(tv.volatileLongVar, longValue, "Unsafe.putLongVolatile(Object, long, long)"); in testGetAndPutVolatile()
356 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
363 check(unsafe.getObjectVolatile(tv, volatileObjectOffset), in testGetAndPutVolatile()
[all …]
/art/test/004-UnsafeTest/src/
DMain.java224 TestVolatileClass tv = new TestVolatileClass(); in testGetAndPutVolatile() local
229 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
232 unsafe.putIntVolatile(tv, volatileIntOffset, intValue); in testGetAndPutVolatile()
233 check(tv.volatileIntVar, intValue, "Unsafe.putIntVolatile(Object, long, int)"); in testGetAndPutVolatile()
234 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
241 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
244 unsafe.putLongVolatile(tv, volatileLongOffset, longValue); in testGetAndPutVolatile()
245 check(tv.volatileLongVar, longValue, "Unsafe.putLongVolatile(Object, long, long)"); in testGetAndPutVolatile()
246 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
253 check(unsafe.getObjectVolatile(tv, volatileObjectOffset), in testGetAndPutVolatile()
[all …]
/art/libartbase/base/
Dtime_utils.cc40 int GetTimeOfDay(struct timeval* tv, struct timezone* tz) { in GetTimeOfDay() argument
42 return mingw_gettimeofday(tv, tz); in GetTimeOfDay()
44 return gettimeofday(tv, tz); in GetTimeOfDay()
231 timeval tv; in InitTimeSpec()
232 GetTimeOfDay(&tv, nullptr); in InitTimeSpec()
233 ts->tv_sec = tv.tv_sec; in InitTimeSpec()
234 ts->tv_nsec = tv.tv_usec * 1000; in InitTimeSpec()
/art/openjdkjvm/
DOpenjdkJvm.cc208 struct timeval tv; in JVM_CurrentTimeMillis() local
209 gettimeofday(&tv, (struct timezone *) nullptr); in JVM_CurrentTimeMillis()
210 jlong when = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in JVM_CurrentTimeMillis()
221 struct timeval tv; in JVM_GetNanoTimeAdjustment() local
230 gettimeofday(&tv, (struct timezone *) nullptr); in JVM_GetNanoTimeAdjustment()
231 jlong sec_diff = ((jlong) tv.tv_sec) - offset_secs; in JVM_GetNanoTimeAdjustment()
237 jlong usec_diff = sec_diff * 1000000LL + tv.tv_usec; in JVM_GetNanoTimeAdjustment()
/art/openjdkjvmti/
Devents.cc468 struct timeval tv; in ThreadParkStart() local
469 gettimeofday(&tv, (struct timezone *) nullptr); in ThreadParkStart()
470 int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in ThreadParkStart()