mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-22 04:03:11 +00:00
Revert "Experimental configuration option for fast path prefetch from cache_bin"
This reverts commit f9fae9f1f8.
This commit is contained in:
committed by
Guangli Dai
parent
c51abba131
commit
d4908fe44a
@@ -160,11 +160,6 @@
|
||||
/* JEMALLOC_EXPERIMENTAL_SMALLOCX_API enables experimental smallocx API. */
|
||||
#undef JEMALLOC_EXPERIMENTAL_SMALLOCX_API
|
||||
|
||||
/* JEMALLOC_EXPERIMENTAL_FASTPATH_PREFETCH enables prefetch
|
||||
* on malloc fast path.
|
||||
*/
|
||||
#undef JEMALLOC_EXPERIMENTAL_FASTPATH_PREFETCH
|
||||
|
||||
/* JEMALLOC_PROF enables allocation profiling. */
|
||||
#undef JEMALLOC_PROF
|
||||
|
||||
|
||||
@@ -374,12 +374,6 @@ imalloc_fastpath(size_t size, void *(fallback_alloc)(size_t)) {
|
||||
*/
|
||||
ret = cache_bin_alloc_easy(bin, &tcache_success);
|
||||
if (tcache_success) {
|
||||
#if defined(JEMALLOC_EXPERIMENTAL_FASTPATH_PREFETCH)
|
||||
cache_bin_sz_t lb = (cache_bin_sz_t)(uintptr_t)bin->stack_head;
|
||||
if(likely(lb != bin->low_bits_empty)) {
|
||||
util_prefetch_write_range(*(bin->stack_head), usize);
|
||||
}
|
||||
#endif
|
||||
fastpath_success_finish(tsd, allocated_after, bin, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user