src/hotspot/cpu/x86/rdtsc_x86.cpp
changeset 54983 81becad91321
parent 50113 caf115bb98ad
child 58041 d8902e9c307c
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54982:b18c8301b8c2 54983:81becad91321
   143 }
   143 }
   144 
   144 
   145 static bool ergonomics() {
   145 static bool ergonomics() {
   146   const bool invtsc_support = Rdtsc::is_supported();
   146   const bool invtsc_support = Rdtsc::is_supported();
   147   if (FLAG_IS_DEFAULT(UseFastUnorderedTimeStamps) && invtsc_support) {
   147   if (FLAG_IS_DEFAULT(UseFastUnorderedTimeStamps) && invtsc_support) {
   148     FLAG_SET_ERGO(bool, UseFastUnorderedTimeStamps, true);
   148     FLAG_SET_ERGO(UseFastUnorderedTimeStamps, true);
   149   }
   149   }
   150 
   150 
   151   bool ft_enabled = UseFastUnorderedTimeStamps && invtsc_support;
   151   bool ft_enabled = UseFastUnorderedTimeStamps && invtsc_support;
   152 
   152 
   153   if (!ft_enabled) {
   153   if (!ft_enabled) {