| Index: src/heap.h
|
| ===================================================================
|
| --- src/heap.h (revision 5541)
|
| +++ src/heap.h (working copy)
|
| @@ -245,7 +245,7 @@
|
| // semi space. The young generation consists of two semi spaces and
|
| // we reserve twice the amount needed for those in order to ensure
|
| // that new space can be aligned to its size.
|
| - static int MaxReserved() {
|
| + static intptr_t MaxReserved() {
|
| return 4 * reserved_semispace_size_ + max_old_generation_size_;
|
| }
|
| static int MaxSemiSpaceSize() { return max_semispace_size_; }
|
| @@ -269,7 +269,7 @@
|
| static inline int MaxObjectSizeInPagedSpace();
|
|
|
| // Returns of size of all objects residing in the heap.
|
| - static int SizeOfObjects();
|
| + static intptr_t SizeOfObjects();
|
|
|
| // Return the starting address and a mask for the new space. And-masking an
|
| // address with the mask will result in the start address of the new space
|
| @@ -1069,7 +1069,7 @@
|
| static int reserved_semispace_size_;
|
| static int max_semispace_size_;
|
| static int initial_semispace_size_;
|
| - static int max_old_generation_size_;
|
| + static intptr_t max_old_generation_size_;
|
| static size_t code_range_size_;
|
|
|
| // For keeping track of how much data has survived
|
| @@ -1098,7 +1098,7 @@
|
| static HeapState gc_state_;
|
|
|
| // Returns the size of object residing in non new spaces.
|
| - static int PromotedSpaceSize();
|
| + static intptr_t PromotedSpaceSize();
|
|
|
| // Returns the amount of external memory registered since last global gc.
|
| static int PromotedExternalMemorySize();
|
| @@ -1133,16 +1133,16 @@
|
| // Limit that triggers a global GC on the next (normally caused) GC. This
|
| // is checked when we have already decided to do a GC to help determine
|
| // which collector to invoke.
|
| - static int old_gen_promotion_limit_;
|
| + static intptr_t old_gen_promotion_limit_;
|
|
|
| // Limit that triggers a global GC as soon as is reasonable. This is
|
| // checked before expanding a paged space in the old generation and on
|
| // every allocation in large object space.
|
| - static int old_gen_allocation_limit_;
|
| + static intptr_t old_gen_allocation_limit_;
|
|
|
| // Limit on the amount of externally allocated memory allowed
|
| // between global GCs. If reached a global GC is forced.
|
| - static int external_allocation_limit_;
|
| + static intptr_t external_allocation_limit_;
|
|
|
| // The amount of external memory registered through the API kept alive
|
| // by global handles
|
| @@ -1837,7 +1837,7 @@
|
| static int get_max_gc_pause() { return max_gc_pause_; }
|
|
|
| // Returns maximum size of objects alive after GC.
|
| - static int get_max_alive_after_gc() { return max_alive_after_gc_; }
|
| + static intptr_t get_max_alive_after_gc() { return max_alive_after_gc_; }
|
|
|
| // Returns minimal interval between two subsequent collections.
|
| static int get_min_in_mutator() { return min_in_mutator_; }
|
| @@ -1852,7 +1852,7 @@
|
| }
|
|
|
| double start_time_; // Timestamp set in the constructor.
|
| - int start_size_; // Size of objects in heap set in constructor.
|
| + intptr_t start_size_; // Size of objects in heap set in constructor.
|
| GarbageCollector collector_; // Type of collector.
|
|
|
| // A count (including this one, eg, the first collection is 1) of the
|
| @@ -1884,30 +1884,30 @@
|
|
|
| // Total amount of space either wasted or contained in one of free lists
|
| // before the current GC.
|
| - int in_free_list_or_wasted_before_gc_;
|
| + intptr_t in_free_list_or_wasted_before_gc_;
|
|
|
| // Difference between space used in the heap at the beginning of the current
|
| // collection and the end of the previous collection.
|
| - int allocated_since_last_gc_;
|
| + intptr_t allocated_since_last_gc_;
|
|
|
| // Amount of time spent in mutator that is time elapsed between end of the
|
| // previous collection and the beginning of the current one.
|
| double spent_in_mutator_;
|
|
|
| // Size of objects promoted during the current collection.
|
| - int promoted_objects_size_;
|
| + intptr_t promoted_objects_size_;
|
|
|
| // Maximum GC pause.
|
| static int max_gc_pause_;
|
|
|
| // Maximum size of objects alive after GC.
|
| - static int max_alive_after_gc_;
|
| + static intptr_t max_alive_after_gc_;
|
|
|
| // Minimal interval between two subsequent collections.
|
| static int min_in_mutator_;
|
|
|
| // Size of objects alive after last GC.
|
| - static int alive_after_last_gc_;
|
| + static intptr_t alive_after_last_gc_;
|
|
|
| static double last_gc_end_timestamp_;
|
| };
|
|
|