diff src/share/vm/gc_interface/collectedHeap.hpp @ 10618:72d0ea03635b

Delegate GC counter from HotSpot to Graal for tracing purposes
author Christos Kotselidis <christos.kotselidis@oracle.com>
date Sun, 07 Jul 2013 17:09:19 +0200
parents 836a62f43af9
children b95d42fdddca
line wrap: on
line diff
--- a/src/share/vm/gc_interface/collectedHeap.hpp	Sun Jul 07 17:02:15 2013 +0200
+++ b/src/share/vm/gc_interface/collectedHeap.hpp	Sun Jul 07 17:09:19 2013 +0200
@@ -490,7 +490,9 @@
   // Total number of GC collections (started)
   unsigned int total_collections() const { return _total_collections; }
   unsigned int total_full_collections() const { return _total_full_collections;}
-
+#ifdef GRAAL
+  void* total_collections_address() { return &_total_collections;}
+#endif
   // Increment total number of GC collections (started)
   // Should be protected but used by PSMarkSweep - cleanup for 1.4.2
   void increment_total_collections(bool full = false) {