Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Unified Diff: src/heap/spaces.h

Issue 2842303003: [heap] Remove max executable size configuration. (Closed)
Patch Set: comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.h
diff --git a/src/heap/spaces.h b/src/heap/spaces.h
index 5a57a30a30dd3a7d78fd3999d5a4556005725133..b230e552a881e6007741f1846f889d3d5a8906a8 100644
--- a/src/heap/spaces.h
+++ b/src/heap/spaces.h
@@ -1273,8 +1273,7 @@ class V8_EXPORT_PRIVATE MemoryAllocator {
// Initializes its internal bookkeeping structures.
// Max capacity of the total space and executable memory limit.
- bool SetUp(size_t max_capacity, size_t capacity_executable,
- size_t code_range_size);
+ bool SetUp(size_t max_capacity, size_t code_range_size);
void TearDown();
@@ -1305,13 +1304,6 @@ class V8_EXPORT_PRIVATE MemoryAllocator {
return capacity_ < size ? 0 : capacity_ - size;
}
- // Returns the maximum available executable bytes of heaps.
- size_t AvailableExecutable() {
- const size_t executable_size = SizeExecutable();
- if (capacity_executable_ < executable_size) return 0;
- return capacity_executable_ - executable_size;
- }
-
// Returns maximum available bytes that the old space can have.
size_t MaxAvailable() {
return (Available() / Page::kPageSize) * Page::kAllocatableMemory;
@@ -1410,8 +1402,6 @@ class V8_EXPORT_PRIVATE MemoryAllocator {
// Maximum space size in bytes.
size_t capacity_;
- // Maximum subset of capacity_ that can be executable
- size_t capacity_executable_;
// Allocated space size in bytes.
base::AtomicNumber<size_t> size_;
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698