| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 22882d4 commit 55a4d66
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | 28 | # Reset this number to 0 on major V8 upgrades. | |
| 29 | 29 | # Increment by one for each non-official patch applied to deps/v8. | |
| 30 | - 'v8_embedder_string': '-node.4', | ||
| 30 | + 'v8_embedder_string': '-node.5', | ||
| 31 | 31 | ||
| 32 | 32 | # Enable disassembler for `--print-code` v8 options | |
| 33 | 33 | 'v8_enable_disassembler': 1, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1885,6 +1885,12 @@ void Heap::Scavenge() { | |||
| 1885 | 1885 | IncrementalMarking::PauseBlackAllocationScope pause_black_allocation( | |
| 1886 | 1886 | incremental_marking()); | |
| 1887 | 1887 | ||
| 1888 | + if (mark_compact_collector()->sweeper().sweeping_in_progress() && | ||
| 1889 | + memory_allocator_->unmapper()->NumberOfDelayedChunks() > | ||
| 1890 | + kMaxSemiSpaceSizeInKB / Page::kPageSize) { | ||
| 1891 | + mark_compact_collector()->EnsureSweepingCompleted(); | ||
| 1892 | + } | ||
| 1893 | + | ||
| 1888 | 1894 | mark_compact_collector()->sweeper().EnsureNewSpaceCompleted(); | |
| 1889 | 1895 | ||
| 1890 | 1896 | SetGCState(SCAVENGE); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1199,6 +1199,11 @@ class V8_EXPORT_PRIVATE MemoryAllocator { | |||
| 1199 | 1199 | ||
| 1200 | 1200 | bool has_delayed_chunks() { return delayed_regular_chunks_.size() > 0; } | |
| 1201 | 1201 | ||
| 1202 | + int NumberOfDelayedChunks() { | ||
| 1203 | + base::LockGuard<base::Mutex> guard(&mutex_); | ||
| 1204 | + return static_cast<int>(delayed_regular_chunks_.size()); | ||
| 1205 | + } | ||
| 1206 | + | ||
| 1202 | 1207 | private: | |
| 1203 | 1208 | static const int kReservedQueueingSlots = 64; | |
| 1204 | 1209 | static const int kMaxUnmapperTasks = 24; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments