src/hotspot/share/runtime/vm_version.hpp
changeset 57804 9b7b9f16dfd9
parent 55105 9ad765641e8f
child 58679 9c3209ff7550
child 59122 5d73255c2d52
equal deleted inserted replaced
57803:23e3ab980622 57804:9b7b9f16dfd9
    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