1
0
Fork 0

eliminate unnecessary check

This commit is contained in:
jsteemann 2017-03-23 18:18:02 +01:00
parent 30b4b2b402
commit f1e6af1ce1
1 changed files with 1 additions and 1 deletions

View File

@ -832,7 +832,7 @@ void V8DealerFeature::exitContext(V8Context* context) {
bool performGarbageCollection = false;
// postpone garbage collection for standard contexts
double lastGc = (gc != nullptr) ? gc->getLastGcStamp() : -1.0;
double lastGc = gc->getLastGcStamp();
if (context->_lastGcStamp + _gcFrequency < lastGc) {
LOG_TOPIC(TRACE, arangodb::Logger::V8) << "V8 context has reached GC timeout threshold and will be "
"scheduled for GC";