[DA] V8 max heap memory size tuning. 29/291229/4
authorjihwankim <jh_marc.kim@samsung.com>
Mon, 21 Jun 2021 06:51:55 +0000 (15:51 +0900)
committerBot Blink <blinkbot@samsung.com>
Wed, 19 Apr 2023 08:03:41 +0000 (08:03 +0000)
V8 heap memory for DA should be constrained tigher than defualt,
because other modules use memory as well.

So we reduce v8's old space from 461MB to 320MB.
Instead of it, we increase new space from 8MB*2 to 16MB*2,
to maintain minimum performance.

Change-Id: I0eb679281433816de95e959dd21da1f31fc7da0b
Signed-off-by: jihwankim <jh_marc.kim@samsung.com>
gin/isolate_holder.cc

index a52bd32c44b057e52ab10fd068bb7dc9f29c2a76..7bbebd2f1b16c327169e6ff96375ff8a2ea77912 100644 (file)
@@ -31,7 +31,7 @@ v8::ArrayBuffer::Allocator* g_array_buffer_allocator = nullptr;
 const intptr_t* g_reference_table = nullptr;
 }  // namespace
 
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if defined(OS_TIZEN_TV_PRODUCT) || defined(OS_TIZEN_DA_PRODUCT)
 const size_t kMaxYoungGenerationSize = 16 * 1024 * 1024;
 const size_t kMaxOldGenerationSize = 320 * 1024 * 1024;
 #endif
@@ -94,7 +94,7 @@ IsolateHolder::IsolateHolder(
     params.constraints.ConfigureDefaults(
         base::SysInfo::AmountOfPhysicalMemory(),
         base::SysInfo::AmountOfVirtualMemory());
-#if defined(OS_TIZEN_TV_PRODUCT)
+#if defined(OS_TIZEN_TV_PRODUCT) || defined(OS_TIZEN_DA_PRODUCT)
     // V8 heap memory for TV should be constrained tighter than default,
     // because other modules use memory as well.
     // We constrain max memory to be 352MB (New Space 16MB*2, Old Space 320MB)