changeset 301:1e5d20c34408

6736341: PermGen size is insufficient for jconsole Summary: Removing two buggy methods that should not be used, but ended up being used due to a re-organization in the class hierarchy. Reviewed-by: jmasa, ysr, kamg, coleenp
author tonyp
date Tue, 19 Aug 2008 17:55:15 -0400
parents 9199f248b0ee
children 331eaa715e58
files src/share/vm/memory/compactingPermGenGen.cpp src/share/vm/memory/compactingPermGenGen.hpp
diffstat 2 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/memory/compactingPermGenGen.cpp	Thu Aug 14 17:58:35 2008 -0700
+++ b/src/share/vm/memory/compactingPermGenGen.cpp	Tue Aug 19 17:55:15 2008 -0400
@@ -421,30 +421,6 @@
 }
 
 
-
-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
--- a/src/share/vm/memory/compactingPermGenGen.hpp	Thu Aug 14 17:58:35 2008 -0700
+++ b/src/share/vm/memory/compactingPermGenGen.hpp	Tue Aug 19 17:55:15 2008 -0400
@@ -183,8 +183,6 @@
   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();