8000 Fix available time for garbage collection to be not bigger as the cal… · lethalbrains/arangodb@a3e03a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3e03a7

Browse files
committed
Fix available time for garbage collection to be not bigger as the callers value of availableTime
1 parent 0689957 commit a3e03a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/V8/v8-utils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4013,6 +4013,7 @@ v8::Handle<v8::Array> static TRI_V8PathList (v8::Isolate* isolate, string const&
40134013

40144014
bool TRI_SingleRunGarbageCollectionV8 (v8::Isolate* isolate,
40154015
int idleTimeInMs) {
4016+
LOG_INFO("%F");
40164017
isolate->LowMemoryNotification();
40174018
bool rc = isolate->IdleNotification(idleTimeInMs);
40184019
isolate->RunMicrotasks();
@@ -4029,10 +4030,10 @@ void TRI_RunGarbageCollectionV8 (v8::Isolate* isolate,
40294030
int idleTimeInMs = 1000;
40304031

40314032
if (availableTime >= 5.0) {
4032-
idleTimeInMs = 10000;
4033+
idleTimeInMs = 5000;
40334034
}
40344035
if (availableTime >= 10.0) {
4035-
idleTimeInMs = 100000;
4036+
idleTimeInMs = 10000;
40364037
}
40374038

40384039
double const until = TRI_microtime() + availableTime;

0 commit comments

Comments
 (0)
0