src/cpu/sparc/vm/vm_version_sparc.hpp

Print this page




 160   }
 161   static intx prefetch_fields_ahead() {
 162     intx count = PrefetchFieldsAhead;
 163     return count >= 0 ? count : (is_ultra3() ? 1 : 0);
 164   }
 165 
 166   static intx allocate_prefetch_distance() {
 167     // This method should be called before allocate_prefetch_style().
 168     intx count = AllocatePrefetchDistance;
 169     if (count < 0) { // default is not defined ?
 170       count = 512;
 171     }
 172     return count;
 173   }
 174   static intx allocate_prefetch_style() {
 175     assert(AllocatePrefetchStyle >= 0, "AllocatePrefetchStyle should be positive");
 176     // Return 0 if AllocatePrefetchDistance was not defined.
 177     return AllocatePrefetchDistance > 0 ? AllocatePrefetchStyle : 0;
 178   }
 179 
 180   // Legacy
 181   static bool v8_instructions_work() { return has_v8() && !has_v9(); }
 182   static bool v9_instructions_work() { return has_v9(); }
 183 
 184   // Assembler testing
 185   static void allow_all();
 186   static void revert();
 187 
 188   // Override the Abstract_VM_Version implementation.
 189   static uint page_size_count() { return is_sun4v() ? 4 : 2; }
 190 
 191   // Calculates the number of parallel threads
 192   static unsigned int calc_parallel_worker_threads();
 193 };
 194 
 195 #endif // CPU_SPARC_VM_VM_VERSION_SPARC_HPP


 160   }
 161   static intx prefetch_fields_ahead() {
 162     intx count = PrefetchFieldsAhead;
 163     return count >= 0 ? count : (is_ultra3() ? 1 : 0);
 164   }
 165 
 166   static intx allocate_prefetch_distance() {
 167     // This method should be called before allocate_prefetch_style().
 168     intx count = AllocatePrefetchDistance;
 169     if (count < 0) { // default is not defined ?
 170       count = 512;
 171     }
 172     return count;
 173   }
 174   static intx allocate_prefetch_style() {
 175     assert(AllocatePrefetchStyle >= 0, "AllocatePrefetchStyle should be positive");
 176     // Return 0 if AllocatePrefetchDistance was not defined.
 177     return AllocatePrefetchDistance > 0 ? AllocatePrefetchStyle : 0;
 178   }
 179 




 180   // Assembler testing
 181   static void allow_all();
 182   static void revert();
 183 
 184   // Override the Abstract_VM_Version implementation.
 185   static uint page_size_count() { return is_sun4v() ? 4 : 2; }
 186 
 187   // Calculates the number of parallel threads
 188   static unsigned int calc_parallel_worker_threads();
 189 };
 190 
 191 #endif // CPU_SPARC_VM_VM_VERSION_SPARC_HPP