hotspot/src/share/vm/gc/shared/referenceProcessor.cpp
changeset 33198 b37ad9fbf681
parent 33107 77bf0d2069a3
parent 33160 c59f1676d27e
child 33611 9abd65805e19
--- a/hotspot/src/share/vm/gc/shared/referenceProcessor.cpp	Thu Oct 15 13:28:22 2015 +0200
+++ b/hotspot/src/share/vm/gc/shared/referenceProcessor.cpp	Sat Oct 17 19:40:30 2015 -0400
@@ -55,8 +55,11 @@
   java_lang_ref_SoftReference::set_clock(_soft_ref_timestamp_clock);
 
   _always_clear_soft_ref_policy = new AlwaysClearPolicy();
-  _default_soft_ref_policy      = new COMPILER2_PRESENT(LRUMaxHeapPolicy())
-                                      NOT_COMPILER2(LRUCurrentHeapPolicy());
+#if defined(COMPILER2) || INCLUDE_JVMCI
+  _default_soft_ref_policy      = new LRUMaxHeapPolicy();
+#else
+  _default_soft_ref_policy      = new LRUCurrentHeapPolicy();
+#endif
   if (_always_clear_soft_ref_policy == NULL || _default_soft_ref_policy == NULL) {
     vm_exit_during_initialization("Could not allocate reference policy object");
   }