diff src/share/vm/memory/metaspace.hpp @ 20540:b509b7ff561c

8049599: MetaspaceGC::_capacity_until_GC can overflow Reviewed-by: jmasa, stefank
author ehelin
date Wed, 01 Oct 2014 16:09:01 +0200
parents 6e0cb14ce59b
children 7848fc12602b
line wrap: on
line diff
--- a/src/share/vm/memory/metaspace.hpp	Fri Oct 10 03:19:30 2014 -0700
+++ b/src/share/vm/memory/metaspace.hpp	Wed Oct 01 16:09:01 2014 +0200
@@ -404,7 +404,9 @@
   static void post_initialize();
 
   static size_t capacity_until_GC();
-  static size_t inc_capacity_until_GC(size_t v);
+  static bool inc_capacity_until_GC(size_t v,
+                                    size_t* new_cap_until_GC = NULL,
+                                    size_t* old_cap_until_GC = NULL);
   static size_t dec_capacity_until_GC(size_t v);
 
   static bool should_concurrent_collect() { return _should_concurrent_collect; }