Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 11af00febd9d1371eccd95a9d71eb6a664a7a2cf..7bcaa66557a1d6180c42ee18a7200cbee6fe455b 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -1663,9 +1663,8 @@ STATIC_ASSERT(sizeof(AllocationResult) == kPointerSize); |
class PagedSpace : public Space { |
public: |
- // Creates a space with a maximum capacity, and an id. |
- PagedSpace(Heap* heap, intptr_t max_capacity, AllocationSpace id, |
- Executability executable); |
+ // Creates a space with an id. |
+ PagedSpace(Heap* heap, AllocationSpace id, Executability executable); |
virtual ~PagedSpace() {} |
@@ -1902,9 +1901,6 @@ class PagedSpace : public Space { |
int area_size_; |
- // Maximum capacity of this space. |
- intptr_t max_capacity_; |
- |
// Accounting information for this space. |
AllocationStats accounting_stats_; |
@@ -2654,9 +2650,8 @@ class OldSpace : public PagedSpace { |
public: |
// Creates an old space object with a given maximum capacity. |
Michael Starzinger
2015/08/11 07:42:36
nit: s/with a given maximum capacity//
Hannes Payer (out of office)
2015/08/11 08:04:40
Done.
|
// The constructor does not allocate pages from OS. |
- OldSpace(Heap* heap, intptr_t max_capacity, AllocationSpace id, |
- Executability executable) |
- : PagedSpace(heap, max_capacity, id, executable) {} |
+ OldSpace(Heap* heap, AllocationSpace id, Executability executable) |
+ : PagedSpace(heap, id, executable) {} |
}; |
@@ -2674,8 +2669,8 @@ class OldSpace : public PagedSpace { |
class MapSpace : public PagedSpace { |
public: |
// Creates a map space object with a maximum capacity. |
Michael Starzinger
2015/08/11 07:42:36
nit: s/with a given maximum capacity//
Hannes Payer (out of office)
2015/08/11 08:04:40
Done.
|
- MapSpace(Heap* heap, intptr_t max_capacity, AllocationSpace id) |
- : PagedSpace(heap, max_capacity, id, NOT_EXECUTABLE), |
+ MapSpace(Heap* heap, AllocationSpace id) |
+ : PagedSpace(heap, id, NOT_EXECUTABLE), |
max_map_space_pages_(kMaxMapPageIndex - 1) {} |
// Given an index, returns the page address. |
@@ -2714,7 +2709,7 @@ class MapSpace : public PagedSpace { |
class LargeObjectSpace : public Space { |
public: |
- LargeObjectSpace(Heap* heap, intptr_t max_capacity, AllocationSpace id); |
+ LargeObjectSpace(Heap* heap, AllocationSpace id); |
virtual ~LargeObjectSpace() {} |
// Initializes internal data structures. |
@@ -2733,8 +2728,6 @@ class LargeObjectSpace : public Space { |
MUST_USE_RESULT AllocationResult |
AllocateRaw(int object_size, Executability executable); |
- bool CanAllocateSize(int size) { return Size() + size <= max_capacity_; } |
- |
// Available bytes for objects in this space. |
inline intptr_t Available() override; |
@@ -2784,7 +2777,6 @@ class LargeObjectSpace : public Space { |
bool SlowContains(Address addr) { return FindObject(addr)->IsHeapObject(); } |
private: |
- intptr_t max_capacity_; |
intptr_t maximum_committed_; |
// The head of the linked list of large object chunks. |
LargePage* first_page_; |