diff src/share/vm/services/virtualMemoryTracker.hpp @ 20363:36c9011aaead

8054368: nsk/jdi/VirtualMachine/exit/exit002 crash with detail tracking on (NMT2) Summary: Dynamic allocate _reserved_regions instead of static object to avoid racing during process exit Reviewed-by: dholmes, coleenp
author zgu
date Thu, 14 Aug 2014 09:02:51 -0400
parents 833b0f92429a
children c6211b707068
line wrap: on
line diff
--- a/src/share/vm/services/virtualMemoryTracker.hpp	Tue Aug 12 12:39:02 2014 -0700
+++ b/src/share/vm/services/virtualMemoryTracker.hpp	Thu Aug 14 09:02:51 2014 -0400
@@ -414,6 +414,9 @@
  public:
   static bool initialize(NMT_TrackingLevel level);
 
+  // Late phase initialization
+  static bool late_initialize(NMT_TrackingLevel level);
+
   static bool add_reserved_region (address base_addr, size_t size, const NativeCallStack& stack,
     MEMFLAGS flag = mtNone, bool all_committed = false);
 
@@ -428,7 +431,7 @@
   static bool transition(NMT_TrackingLevel from, NMT_TrackingLevel to);
 
  private:
-  static SortedLinkedList<ReservedMemoryRegion, compare_reserved_region_base> _reserved_regions;
+  static SortedLinkedList<ReservedMemoryRegion, compare_reserved_region_base>* _reserved_regions;
 };