diff options
author | ysr <none@none> | 2008-08-25 12:16:34 -0700 |
---|---|---|
committer | ysr <none@none> | 2008-08-25 12:16:34 -0700 |
commit | 1a8fae105b0113d317712f856e3bbc72c3665950 (patch) | |
tree | e9040a48733ddcab2a5be74a1c9d8b252dc47924 /src/share/vm/memory | |
parent | 02a652ffbf93356cc116548583e7f66e338ab3d2 (diff) | |
parent | 840d4118a788d2fb709d308e945eda4c6601e35a (diff) | |
download | jdk8u_hotspot-1a8fae105b0113d317712f856e3bbc72c3665950.tar.gz |
Merge
Diffstat (limited to 'src/share/vm/memory')
-rw-r--r-- | src/share/vm/memory/blockOffsetTable.hpp | 6 | ||||
-rw-r--r-- | src/share/vm/memory/compactingPermGenGen.cpp | 24 | ||||
-rw-r--r-- | src/share/vm/memory/compactingPermGenGen.hpp | 2 |
3 files changed, 6 insertions, 26 deletions
diff --git a/src/share/vm/memory/blockOffsetTable.hpp b/src/share/vm/memory/blockOffsetTable.hpp index fc76fc920..be9ec01bf 100644 --- a/src/share/vm/memory/blockOffsetTable.hpp +++ b/src/share/vm/memory/blockOffsetTable.hpp @@ -199,6 +199,12 @@ public: // "index" in "_offset_array". HeapWord* address_for_index(size_t index) const; + // Return the address "p" incremented by the size of + // a region. This method does not align the address + // returned to the start of a region. It is a simple + // primitive. + HeapWord* inc_by_region_size(HeapWord* p) const { return p + N_words; } + // Shared space support void serialize(SerializeOopClosure* soc, HeapWord* start, HeapWord* end); }; diff --git a/src/share/vm/memory/compactingPermGenGen.cpp b/src/share/vm/memory/compactingPermGenGen.cpp index af94649ed..e1de54e38 100644 --- a/src/share/vm/memory/compactingPermGenGen.cpp +++ b/src/share/vm/memory/compactingPermGenGen.cpp @@ -421,30 +421,6 @@ size_t CompactingPermGenGen::max_capacity() const { } - -bool CompactingPermGenGen::grow_by(size_t bytes) { - // Don't allow _virtual_size to expand into shared spaces. - size_t max_bytes = _virtual_space.uncommitted_size() - _shared_space_size; - if (bytes > _shared_space_size) { - bytes = _shared_space_size; - } - return OneContigSpaceCardGeneration::grow_by(bytes); -} - - -bool CompactingPermGenGen::grow_to_reserved() { - // Don't allow _virtual_size to expand into shared spaces. - bool success = false; - if (_virtual_space.uncommitted_size() > _shared_space_size) { - size_t remaining_bytes = - _virtual_space.uncommitted_size() - _shared_space_size; - success = OneContigSpaceCardGeneration::grow_by(remaining_bytes); - DEBUG_ONLY(if (!success) warning("grow to reserved failed");) - } - return success; -} - - // No young generation references, clear this generation's main space's // card table entries. Do NOT clear the card table entries for the // read-only space (always clear) or the read-write space (valuable diff --git a/src/share/vm/memory/compactingPermGenGen.hpp b/src/share/vm/memory/compactingPermGenGen.hpp index 4d76e473b..3a12a8848 100644 --- a/src/share/vm/memory/compactingPermGenGen.hpp +++ b/src/share/vm/memory/compactingPermGenGen.hpp @@ -183,8 +183,6 @@ public: void compact(); void post_compact(); size_t contiguous_available() const; - bool grow_by(size_t bytes); - virtual bool grow_to_reserved(); void clear_remembered_set(); void invalidate_remembered_set(); |