Mercurial > hg > graal-jvmci-8
comparison src/share/vm/utilities/events.hpp @ 4951:72c425c46102
7146729: nightly failure after 7141200: tty is sometimes null during shutdown of main thread
Reviewed-by: kvn
author | never |
---|---|
date | Fri, 17 Feb 2012 12:18:10 -0800 |
parents | 09d00c18e323 |
children | d2a62e0f25eb |
comparison
equal
deleted
inserted
replaced
4950:9b8ce46870df | 4951:72c425c46102 |
---|---|
93 _mutex(Mutex::event, name) { | 93 _mutex(Mutex::event, name) { |
94 _records = new EventRecord<T>[length]; | 94 _records = new EventRecord<T>[length]; |
95 } | 95 } |
96 | 96 |
97 double fetch_timestamp() { | 97 double fetch_timestamp() { |
98 return tty->time_stamp().seconds(); | 98 return os::elapsedTime(); |
99 } | 99 } |
100 | 100 |
101 // move the ring buffer to next open slot and return the index of | 101 // move the ring buffer to next open slot and return the index of |
102 // the slot to use for the current message. Should only be called | 102 // the slot to use for the current message. Should only be called |
103 // while mutex is held. | 103 // while mutex is held. |