Mercurial > hg > truffle
comparison src/os/linux/vm/os_linux.cpp @ 342:37f87013dfd8
6711316: Open source the Garbage-First garbage collector
Summary: First mercurial integration of the code for the Garbage-First garbage collector.
Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author | ysr |
---|---|
date | Thu, 05 Jun 2008 15:57:56 -0700 |
parents | fcbfc50865ab |
children | 69fefd031e6c |
comparison
equal
deleted
inserted
replaced
189:0b27f3512f9e | 342:37f87013dfd8 |
---|---|
1257 return jlong(time.tv_sec) * 1000 * 1000 + jlong(time.tv_usec) - initial_time_count; | 1257 return jlong(time.tv_sec) * 1000 * 1000 + jlong(time.tv_usec) - initial_time_count; |
1258 } | 1258 } |
1259 | 1259 |
1260 jlong os::elapsed_frequency() { | 1260 jlong os::elapsed_frequency() { |
1261 return (1000 * 1000); | 1261 return (1000 * 1000); |
1262 } | |
1263 | |
1264 // For now, we say that linux does not support vtime. I have no idea | |
1265 // whether it can actually be made to (DLD, 9/13/05). | |
1266 | |
1267 bool os::supports_vtime() { return false; } | |
1268 bool os::enable_vtime() { return false; } | |
1269 bool os::vtime_enabled() { return false; } | |
1270 double os::elapsedVTime() { | |
1271 // better than nothing, but not much | |
1272 return elapsedTime(); | |
1262 } | 1273 } |
1263 | 1274 |
1264 jlong os::javaTimeMillis() { | 1275 jlong os::javaTimeMillis() { |
1265 timeval time; | 1276 timeval time; |
1266 int status = gettimeofday(&time, NULL); | 1277 int status = gettimeofday(&time, NULL); |