Mercurial > hg > truffle
diff src/share/vm/runtime/vm_version.hpp @ 3854:1af104d6cf99
7079329: Adjust allocation prefetching for T4
Summary: on T4 2 BIS instructions should be issued to prefetch 64 bytes
Reviewed-by: iveresov, phh, twisti
author | kvn |
---|---|
date | Tue, 16 Aug 2011 16:59:46 -0700 |
parents | 1d1603768966 |
children | c77d473e71f7 |
line wrap: on
line diff
--- a/src/share/vm/runtime/vm_version.hpp Tue Aug 16 11:53:57 2011 -0700 +++ b/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; }