src/share/vm/memory/space.hpp

changeset 873
122d10c82f3f
parent 791
1ee8caae33af
child 952
e9be0e04635a
     1.1 --- a/src/share/vm/memory/space.hpp	Fri Oct 31 10:34:20 2008 -0700
     1.2 +++ b/src/share/vm/memory/space.hpp	Wed Oct 29 06:30:02 2008 -0700
     1.3 @@ -421,7 +421,7 @@
     1.4  
     1.5    // The maximum percentage of objects that can be dead in the compacted
     1.6    // live part of a compacted space ("deadwood" support.)
     1.7 -  virtual int allowed_dead_ratio() const { return 0; };
     1.8 +  virtual size_t allowed_dead_ratio() const { return 0; };
     1.9  
    1.10    // Some contiguous spaces may maintain some data structures that should
    1.11    // be updated whenever an allocation crosses a boundary.  This function
    1.12 @@ -507,7 +507,7 @@
    1.13                                                                               \
    1.14    size_t allowed_deadspace = 0;                                              \
    1.15    if (skip_dead) {                                                           \
    1.16 -    int ratio = allowed_dead_ratio();                                        \
    1.17 +    const size_t ratio = allowed_dead_ratio();                               \
    1.18      allowed_deadspace = (capacity() * ratio / 100) / HeapWordSize;           \
    1.19    }                                                                          \
    1.20                                                                               \
    1.21 @@ -1079,7 +1079,7 @@
    1.22    friend class VMStructs;
    1.23   protected:
    1.24    // Mark sweep support
    1.25 -  int allowed_dead_ratio() const;
    1.26 +  size_t allowed_dead_ratio() const;
    1.27   public:
    1.28    // Constructor
    1.29    TenuredSpace(BlockOffsetSharedArray* sharedOffsetArray,
    1.30 @@ -1094,7 +1094,7 @@
    1.31    friend class VMStructs;
    1.32   protected:
    1.33    // Mark sweep support
    1.34 -  int allowed_dead_ratio() const;
    1.35 +  size_t allowed_dead_ratio() const;
    1.36   public:
    1.37    // Constructor
    1.38    ContigPermSpace(BlockOffsetSharedArray* sharedOffsetArray, MemRegion mr) :

mercurial