mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-29 16:14:58 +00:00
8268303: Incorrect casts in JfrWriterHost::write for Ticks and Tickspan
Reviewed-by: egahlin
This commit is contained in:
parent
ab01cb547d
commit
f271eb8b84
@ -274,22 +274,22 @@ void WriterHost<BE, IE, WriterPolicyImpl>::write(const Symbol* symbol) {
|
||||
|
||||
template <typename BE, typename IE, typename WriterPolicyImpl>
|
||||
void WriterHost<BE, IE, WriterPolicyImpl>::write(const Ticks& time) {
|
||||
write((uintptr_t)JfrTime::is_ft_enabled() ? time.ft_value() : time.value());
|
||||
write(JfrTime::is_ft_enabled() ? time.ft_value() : time.value());
|
||||
}
|
||||
|
||||
template <typename BE, typename IE, typename WriterPolicyImpl>
|
||||
void WriterHost<BE, IE, WriterPolicyImpl>::write(const Tickspan& time) {
|
||||
write((uintptr_t)JfrTime::is_ft_enabled() ? time.ft_value() : time.value());
|
||||
write(JfrTime::is_ft_enabled() ? time.ft_value() : time.value());
|
||||
}
|
||||
|
||||
template <typename BE, typename IE, typename WriterPolicyImpl>
|
||||
void WriterHost<BE, IE, WriterPolicyImpl>::write(const JfrTicks& time) {
|
||||
write((uintptr_t)time.value());
|
||||
write(time.value());
|
||||
}
|
||||
|
||||
template <typename BE, typename IE, typename WriterPolicyImpl>
|
||||
void WriterHost<BE, IE, WriterPolicyImpl>::write(const JfrTickspan& time) {
|
||||
write((uintptr_t)time.value());
|
||||
write(time.value());
|
||||
}
|
||||
|
||||
template <typename BE, typename IE, typename WriterPolicyImpl>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user