hotspot/src/share/vm/memory/universe.inline.hpp
changeset 32375 b84c2d16ba53
parent 26843 1220c9e50fff
--- a/hotspot/src/share/vm/memory/universe.inline.hpp	Wed Aug 19 11:11:06 2015 -0700
+++ b/hotspot/src/share/vm/memory/universe.inline.hpp	Thu Aug 20 08:42:25 2015 +0200
@@ -49,4 +49,11 @@
   _allocation_context_notification_obj = obj;
 }
 
+template <class Heap, class Policy>
+CollectedHeap* Universe::create_heap_with_policy() {
+  Policy* policy = new Policy();
+  policy->initialize_all();
+  return new Heap(policy);
+}
+
 #endif // SHARE_VM_MEMORY_UNIVERSE_INLINE_HPP