src/hotspot/share/runtime/vm_version.hpp
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 54899 e4cff3cf0234
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
    65   static int          _vm_major_version;
    65   static int          _vm_major_version;
    66   static int          _vm_minor_version;
    66   static int          _vm_minor_version;
    67   static int          _vm_security_version;
    67   static int          _vm_security_version;
    68   static int          _vm_patch_version;
    68   static int          _vm_patch_version;
    69   static int          _vm_build_number;
    69   static int          _vm_build_number;
       
    70   static unsigned int _data_cache_line_flush_size;
    70 
    71 
    71   static VirtualizationType _detected_virtualization;
    72   static VirtualizationType _detected_virtualization;
    72 
    73 
    73  public:
    74  public:
    74   // Called as part of the runtime services initialization which is
    75   // Called as part of the runtime services initialization which is
   153 
   154 
   154   static unsigned int L1_data_cache_line_size() {
   155   static unsigned int L1_data_cache_line_size() {
   155     return _L1_data_cache_line_size;
   156     return _L1_data_cache_line_size;
   156   }
   157   }
   157 
   158 
       
   159   // the size in bytes of a data cache line flushed by a flush
       
   160   // operation which should be a power of two or zero if cache line
       
   161   // writeback is not supported by the current os_cpu combination
       
   162   static unsigned int data_cache_line_flush_size() {
       
   163     return _data_cache_line_flush_size;
       
   164   }
       
   165 
       
   166   // returns true if and only if cache line writeback is supported
       
   167   static bool supports_data_cache_line_flush() {
       
   168     return _data_cache_line_flush_size != 0;
       
   169   }
       
   170 
   158   // ARCH specific policy for the BiasedLocking
   171   // ARCH specific policy for the BiasedLocking
   159   static bool use_biased_locking()  { return true; }
   172   static bool use_biased_locking()  { return true; }
   160 
   173 
   161   // Number of page sizes efficiently supported by the hardware.  Most chips now
   174   // Number of page sizes efficiently supported by the hardware.  Most chips now
   162   // support two sizes, thus this default implementation.  Processor-specific
   175   // support two sizes, thus this default implementation.  Processor-specific
   169   static uint parallel_worker_threads_denominator() { return 8; }
   182   static uint parallel_worker_threads_denominator() { return 8; }
   170 
   183 
   171   // Does this CPU support spin wait instruction?
   184   // Does this CPU support spin wait instruction?
   172   static bool supports_on_spin_wait() { return false; }
   185   static bool supports_on_spin_wait() { return false; }
   173 
   186 
       
   187   // Does platform support fast class initialization checks for static methods?
       
   188   static bool supports_fast_class_init_checks() { return false; }
       
   189 
   174   static bool print_matching_lines_from_file(const char* filename, outputStream* st, const char* keywords_to_match[]);
   190   static bool print_matching_lines_from_file(const char* filename, outputStream* st, const char* keywords_to_match[]);
   175 };
   191 };
   176 
   192 
   177 #include CPU_HEADER(vm_version)
   193 #include CPU_HEADER(vm_version)
   178 
   194