| 1323 | } |
| 1324 | |
| 1325 | size_t FlightRecorder::usedMemory() { |
| 1326 | size_t bytes = 0; |
| 1327 | if (_rec != NULL) { |
| 1328 | _rec_lock.lock(); |
| 1329 | bytes = _rec->usedMemory(); |
| 1330 | _rec_lock.unlock(); |
| 1331 | } |
| 1332 | return bytes; |
| 1333 | } |
| 1334 | |
| 1335 | bool FlightRecorder::timerTick(u64 wall_time, u32 gc_id) { |
| 1336 | if (!_rec_lock.tryLockShared()) { |
no test coverage detected