hotspot/src/share/vm/memory/generation.cpp
changeset 30173 13cf7580b000
parent 29800 fa5f7a2bf717
--- a/hotspot/src/share/vm/memory/generation.cpp	Fri Apr 10 13:58:36 2015 +0200
+++ b/hotspot/src/share/vm/memory/generation.cpp	Mon Apr 13 15:47:48 2015 +0200
@@ -187,7 +187,7 @@
   assert(obj_size == (size_t)obj->size(), "bad obj_size passed in");
 
 #ifndef PRODUCT
-  if (Universe::heap()->promotion_should_fail()) {
+  if (GenCollectedHeap::heap()->promotion_should_fail()) {
     return NULL;
   }
 #endif  // #ifndef PRODUCT