| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7bdb8db commit ad69207
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | #define V8_MAJOR_VERSION 6 | |
| 12 | 12 | #define V8_MINOR_VERSION 1 | |
| 13 | 13 | #define V8_BUILD_NUMBER 534 | |
| 14 | - #define V8_PATCH_LEVEL 44 | ||
| 14 | + #define V8_PATCH_LEVEL 45 | ||
| 15 | 15 | ||
| 16 | 16 | // Use 1 for candidates and 0 otherwise. | |
| 17 | 17 | // (Boolean macro values are not supported by all preprocessors.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -490,6 +490,8 @@ void GCTracer::PrintNVP() const { | |||
| 490 | 490 | "promotion_rate=%.1f%% " | |
| 491 | 491 | "semi_space_copy_rate=%.1f%% " | |
| 492 | 492 | "new_space_allocation_throughput=%.1f " | |
| 493 | + "unmapper_chunks=%d " | ||
| 494 | + "unmapper_delayed_chunks=%d " | ||
| 493 | 495 | "context_disposal_rate=%.1f\n", | |
| 494 | 496 | duration, spent_in_mutator, current_.TypeName(true), | |
| 495 | 497 | current_.reduce_memory, current_.scopes[Scope::HEAP_PROLOGUE], | |
@@ -517,6 +519,8 @@ void GCTracer::PrintNVP() const { | |||
| 517 | 519 | AverageSurvivalRatio(), heap_->promotion_rate_, | |
| 518 | 520 | heap_->semi_space_copied_rate_, | |
| 519 | 521 | NewSpaceAllocationThroughputInBytesPerMillisecond(), | |
| 522 | + heap_->memory_allocator()->unmapper()->NumberOfChunks(), | ||
| 523 | + heap_->memory_allocator()->unmapper()->NumberOfDelayedChunks(), | ||
| 520 | 524 | ContextDisposalRateInMilliseconds()); | |
| 521 | 525 | break; | |
| 522 | 526 | case Event::MINOR_MARK_COMPACTOR: | |
@@ -650,6 +654,8 @@ void GCTracer::PrintNVP() const { | |||
| 650 | 654 | "promotion_rate=%.1f%% " | |
| 651 | 655 | "semi_space_copy_rate=%.1f%% " | |
| 652 | 656 | "new_space_allocation_throughput=%.1f " | |
| 657 | + "unmapper_chunks=%d " | ||
| 658 | + "unmapper_delayed_chunks=%d " | ||
| 653 | 659 | "context_disposal_rate=%.1f " | |
| 654 | 660 | "compaction_speed=%.f\n", | |
| 655 | 661 | duration, spent_in_mutator, current_.TypeName(true), | |
@@ -726,6 +732,8 @@ void GCTracer::PrintNVP() const { | |||
| 726 | 732 | AverageSurvivalRatio(), heap_->promotion_rate_, | |
| 727 | 733 | heap_->semi_space_copied_rate_, | |
| 728 | 734 | NewSpaceAllocationThroughputInBytesPerMillisecond(), | |
| 735 | + heap_->memory_allocator()->unmapper()->NumberOfChunks(), | ||
| 736 | + heap_->memory_allocator()->unmapper()->NumberOfDelayedChunks(), | ||
| 729 | 737 | ContextDisposalRateInMilliseconds(), | |
| 730 | 738 | CompactionSpeedInBytesPerMillisecond()); | |
| 731 | 739 | break; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -418,6 +418,15 @@ void MemoryAllocator::Unmapper::ReconsiderDelayedChunks() { | |||
| 418 | 418 | } | |
| 419 | 419 | } | |
| 420 | 420 | ||
| 421 | + int MemoryAllocator::Unmapper::NumberOfChunks() { | ||
| 422 | + base::LockGuard<base::Mutex> guard(&mutex_); | ||
| 423 | + size_t result = 0; | ||
| 424 | + for (int i = 0; i < kNumberOfChunkQueues; i++) { | ||
| 425 | + result += chunks_[i].size(); | ||
| 426 | + } | ||
| 427 | + return static_cast<int>(result); | ||
| 428 | + } | ||
| 429 | + | ||
| 421 | 430 | bool MemoryAllocator::CanFreeMemoryChunk(MemoryChunk* chunk) { | |
| 422 | 431 | MarkCompactCollector* mc = isolate_->heap()->mark_compact_collector(); | |
| 423 | 432 | // We cannot free a memory chunk in new space while the sweeper is running | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1231,6 +1231,8 @@ class V8_EXPORT_PRIVATE MemoryAllocator { | |||
| 1231 | 1231 | return static_cast<int>(delayed_regular_chunks_.size()); | |
| 1232 | 1232 | } | |
| 1233 | 1233 | ||
| 1234 | + int NumberOfChunks(); | ||
| 1235 | + | ||
| 1234 | 1236 | private: | |
| 1235 | 1237 | static const int kReservedQueueingSlots = 64; | |
| 1236 | 1238 | static const int kMaxUnmapperTasks = 24; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments