src/cpu/sparc/vm/vm_version_sparc.cpp

Print this page
rev 6623 : 8048241: Introduce umbrella header os.inline.hpp and clean up includes
Reviewed-by: coleenp, dholmes, lfoltan


  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "asm/macroAssembler.inline.hpp"
  27 #include "memory/resourceArea.hpp"
  28 #include "runtime/java.hpp"
  29 #include "runtime/stubCodeGenerator.hpp"
  30 #include "vm_version_sparc.hpp"
  31 #ifdef TARGET_OS_FAMILY_linux
  32 # include "os_linux.inline.hpp"
  33 #endif
  34 #ifdef TARGET_OS_FAMILY_solaris
  35 # include "os_solaris.inline.hpp"
  36 #endif
  37 
  38 int VM_Version::_features = VM_Version::unknown_m;
  39 const char* VM_Version::_features_str = "";
  40 
  41 void VM_Version::initialize() {
  42   _features = determine_features();
  43   PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes();
  44   PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes();
  45   PrefetchFieldsAhead         = prefetch_fields_ahead();
  46 
  47   assert(0 <= AllocatePrefetchInstr && AllocatePrefetchInstr <= 1, "invalid value");
  48   if( AllocatePrefetchInstr < 0 ) AllocatePrefetchInstr = 0;
  49   if( AllocatePrefetchInstr > 1 ) AllocatePrefetchInstr = 0;
  50 
  51   // Allocation prefetch settings
  52   intx cache_line_size = prefetch_data_size();
  53   if( cache_line_size > AllocatePrefetchStepSize )
  54     AllocatePrefetchStepSize = cache_line_size;
  55 
  56   assert(AllocatePrefetchLines > 0, "invalid value");




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "asm/macroAssembler.inline.hpp"
  27 #include "memory/resourceArea.hpp"
  28 #include "runtime/java.hpp"
  29 #include "runtime/stubCodeGenerator.hpp"
  30 #include "vm_version_sparc.hpp"






  31 
  32 int VM_Version::_features = VM_Version::unknown_m;
  33 const char* VM_Version::_features_str = "";
  34 
  35 void VM_Version::initialize() {
  36   _features = determine_features();
  37   PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes();
  38   PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes();
  39   PrefetchFieldsAhead         = prefetch_fields_ahead();
  40 
  41   assert(0 <= AllocatePrefetchInstr && AllocatePrefetchInstr <= 1, "invalid value");
  42   if( AllocatePrefetchInstr < 0 ) AllocatePrefetchInstr = 0;
  43   if( AllocatePrefetchInstr > 1 ) AllocatePrefetchInstr = 0;
  44 
  45   // Allocation prefetch settings
  46   intx cache_line_size = prefetch_data_size();
  47   if( cache_line_size > AllocatePrefetchStepSize )
  48     AllocatePrefetchStepSize = cache_line_size;
  49 
  50   assert(AllocatePrefetchLines > 0, "invalid value");