You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2020/05/17 22:39:37 UTC

[hive] branch master updated: HIVE-23476 : LLAP: Preallocate arenas for mmap case as well (Prasanth J via Gopal V)

This is an automated email from the ASF dual-hosted git repository.

hashutosh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 28bdeeb  HIVE-23476 :  LLAP: Preallocate arenas for mmap case as well (Prasanth J via Gopal V)
28bdeeb is described below

commit 28bdeeb12e786c4830fdc1b138c7113dc1baa095
Author: Prasanth Jayachandran <pr...@apache.org>
AuthorDate: Sun May 17 15:38:59 2020 -0700

    HIVE-23476 :  LLAP: Preallocate arenas for mmap case as well (Prasanth J via Gopal V)
    
    Signed-off-by: Ashutosh Chauhan <ha...@apache.org>
---
 .../src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llap-server/src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java b/llap-server/src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java
index 341da25..6934dba 100644
--- a/llap-server/src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java
+++ b/llap-server/src/java/org/apache/hadoop/hive/llap/cache/BuddyAllocator.java
@@ -215,7 +215,7 @@ public final class BuddyAllocator
     for (int i = 0; i < maxArenas; ++i) {
       arenas[i] = new Arena();
     }
-    int initCount = doPreallocate && !isMapped ? maxArenas : 1;
+    int initCount = doPreallocate ? maxArenas : 1;
     for (int i = 0; i < initCount; ++i) {
       arenas[i].init(i);
       metrics.incrAllocatedArena();