Home
last modified time | relevance | path

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

/art/test/2235-JdkUnsafeTest/src/
DMain.java309 TestVolatileClass tv = new TestVolatileClass(); in testGetAndPutVolatile() local
314 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
317 unsafe.putIntVolatile(tv, volatileIntOffset, intValue); in testGetAndPutVolatile()
318 check(tv.volatileIntVar, intValue, "Unsafe.putIntVolatile(Object, long, int)"); in testGetAndPutVolatile()
319 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
326 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
329 unsafe.putLongVolatile(tv, volatileLongOffset, longValue); in testGetAndPutVolatile()
330 check(tv.volatileLongVar, longValue, "Unsafe.putLongVolatile(Object, long, long)"); in testGetAndPutVolatile()
331 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
338 check(unsafe.getObjectVolatile(tv, volatileObjectOffset), in testGetAndPutVolatile()
[all …]
/art/test/004-UnsafeTest/src/
DMain.java216 TestVolatileClass tv = new TestVolatileClass(); in testGetAndPutVolatile() local
221 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
224 unsafe.putIntVolatile(tv, volatileIntOffset, intValue); in testGetAndPutVolatile()
225 check(tv.volatileIntVar, intValue, "Unsafe.putIntVolatile(Object, long, int)"); in testGetAndPutVolatile()
226 check(unsafe.getIntVolatile(tv, volatileIntOffset), in testGetAndPutVolatile()
233 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
236 unsafe.putLongVolatile(tv, volatileLongOffset, longValue); in testGetAndPutVolatile()
237 check(tv.volatileLongVar, longValue, "Unsafe.putLongVolatile(Object, long, long)"); in testGetAndPutVolatile()
238 check(unsafe.getLongVolatile(tv, volatileLongOffset), in testGetAndPutVolatile()
245 check(unsafe.getObjectVolatile(tv, volatileObjectOffset), in testGetAndPutVolatile()
[all …]
/art/libartbase/base/
Dtime_utils.cc38 int GetTimeOfDay(struct timeval* tv, struct timezone* tz) { in GetTimeOfDay() argument
40 return mingw_gettimeofday(tv, tz); in GetTimeOfDay()
42 return gettimeofday(tv, tz); in GetTimeOfDay()
235 timeval tv; in InitTimeSpec()
236 GetTimeOfDay(&tv, nullptr); in InitTimeSpec()
237 ts->tv_sec = tv.tv_sec; in InitTimeSpec()
238 ts->tv_nsec = tv.tv_usec * 1000; in InitTimeSpec()
/art/openjdkjvm/
DOpenjdkJvm.cc207 struct timeval tv; in JVM_CurrentTimeMillis() local
208 gettimeofday(&tv, (struct timezone *) nullptr); in JVM_CurrentTimeMillis()
209 jlong when = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in JVM_CurrentTimeMillis()
220 struct timeval tv; in JVM_GetNanoTimeAdjustment() local
229 gettimeofday(&tv, (struct timezone *) nullptr); in JVM_GetNanoTimeAdjustment()
230 jlong sec_diff = ((jlong) tv.tv_sec) - offset_secs; in JVM_GetNanoTimeAdjustment()
236 jlong usec_diff = sec_diff * 1000000LL + tv.tv_usec; in JVM_GetNanoTimeAdjustment()
/art/tools/dmtracedump/
Dcreatetesttrace.cc339 struct timeval tv; in writeDataHeader() local
342 gettimeofday(&tv, &tz); in writeDataHeader()
343 uint64_t startTime = tv.tv_sec; in writeDataHeader()
344 startTime = (startTime << 32) | tv.tv_usec; in writeDataHeader()
/art/openjdkjvmti/
Devents.cc470 struct timeval tv; in ThreadParkStart() local
471 gettimeofday(&tv, (struct timezone *) nullptr); in ThreadParkStart()
472 int64_t now = tv.tv_sec * 1000LL + tv.tv_usec / 1000; in ThreadParkStart()