Skip to content

Commit fa163e2

Browse files
committed
Version 4.8.271.17 (cherry-pick)
Merged a373e75 Guard UnmapFreeMemoryTask with a flag. BUG=chromium:574349 LOG=N R=hablich@chromium.org Review URL: https://codereview.chromium.org/1581663002 . Cr-Commit-Position: refs/branch-heads/4.8@{#20} Cr-Branched-From: 10449d4-refs/heads/4.8.271@{#1} Cr-Branched-From: 2ebd5fc-refs/heads/master@{#31941}
1 parent dc1ad44 commit fa163e2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

include/v8-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define V8_MAJOR_VERSION 4
1212
#define V8_MINOR_VERSION 8
1313
#define V8_BUILD_NUMBER 271
14-
#define V8_PATCH_LEVEL 16
14+
#define V8_PATCH_LEVEL 17
1515

1616
// Use 1 for candidates and 0 otherwise.
1717
// (Boolean macro values are not supported by all preprocessors.)

src/heap/heap.cc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6070,9 +6070,14 @@ void Heap::FilterStoreBufferEntriesOnAboutToBeFreedPages() {
60706070

60716071
void Heap::FreeQueuedChunks() {
60726072
if (chunks_queued_for_free_ != NULL) {
6073-
V8::GetCurrentPlatform()->CallOnBackgroundThread(
6074-
new UnmapFreeMemoryTask(this, chunks_queued_for_free_),
6075-
v8::Platform::kShortRunningTask);
6073+
if (FLAG_concurrent_sweeping) {
6074+
V8::GetCurrentPlatform()->CallOnBackgroundThread(
6075+
new UnmapFreeMemoryTask(this, chunks_queued_for_free_),
6076+
v8::Platform::kShortRunningTask);
6077+
} else {
6078+
FreeQueuedChunks(chunks_queued_for_free_);
6079+
pending_unmapping_tasks_semaphore_.Signal();
6080+
}
60766081
chunks_queued_for_free_ = NULL;
60776082
} else {
60786083
// If we do not have anything to unmap, we just signal the semaphore

0 commit comments

Comments
 (0)