hotspot/src/share/vm/runtime/vm_version.hpp
changeset 10267 8bdeec886dc4
parent 8921 14bfe81f2a9d
child 11720 b20268d74484
--- a/hotspot/src/share/vm/runtime/vm_version.hpp	Tue Aug 16 11:53:57 2011 -0700
+++ b/hotspot/src/share/vm/runtime/vm_version.hpp	Tue Aug 16 16:59:46 2011 -0700
@@ -44,6 +44,7 @@
   static bool         _initialized;
   static int          _parallel_worker_threads;
   static bool         _parallel_worker_threads_initialized;
+  static int          _reserve_for_allocation_prefetch;
 
   static unsigned int nof_parallel_worker_threads(unsigned int num,
                                                   unsigned int dem,
@@ -77,6 +78,12 @@
     return _logical_processors_per_package;
   }
 
+  // Need a space at the end of TLAB for prefetch instructions
+  // which may fault when accessing memory outside of heap.
+  static int reserve_for_allocation_prefetch() {
+    return _reserve_for_allocation_prefetch;
+  }
+
   // ARCH specific policy for the BiasedLocking
   static bool use_biased_locking()  { return true; }