diff src/share/vm/utilities/globalDefinitions.hpp @ 263:12eea04c8b06

6672698: mangle_unused_area() should not remangle the entire heap at each collection. Summary: Maintain a high water mark for the allocations in a space and mangle only up to that high water mark. Reviewed-by: ysr, apetrusenko
author jmasa
date Wed, 09 Jul 2008 15:08:55 -0700
parents f3de1255b035
children 850fdf70db2b
line wrap: on
line diff
--- a/src/share/vm/utilities/globalDefinitions.hpp	Fri Jun 27 19:12:11 2008 -0700
+++ b/src/share/vm/utilities/globalDefinitions.hpp	Wed Jul 09 15:08:55 2008 -0700
@@ -97,8 +97,12 @@
 // object size.
 class HeapWord {
   friend class VMStructs;
-private:
+ private:
   char* i;
+#ifdef ASSERT
+ public:
+  char* value() { return i; }
+#endif
 };
 
 // HeapWordSize must be 2^LogHeapWordSize.