src/hotspot/share/gc/g1/g1VMOperations.cpp
changeset 53116 bb03098c4dde
parent 52876 2d17750d41e7
child 53983 7935353a466a
--- a/src/hotspot/share/gc/g1/g1VMOperations.cpp	Fri Dec 21 18:26:55 2018 +0000
+++ b/src/hotspot/share/gc/g1/g1VMOperations.cpp	Fri Dec 21 08:18:59 2018 -0800
@@ -138,8 +138,8 @@
       // kind of GC.
       _result = g1h->satisfy_failed_allocation(_word_size, &_pause_succeeded);
     } else {
-      bool should_upgrade_to_full = !g1h->should_do_concurrent_full_gc(_gc_cause) &&
-                                    !g1h->has_regions_left_for_allocation();
+      bool should_upgrade_to_full = g1h->should_upgrade_to_full_gc(_gc_cause);
+
       if (should_upgrade_to_full) {
         // There has been a request to perform a GC to free some space. We have no
         // information on how much memory has been asked for. In case there are