hotspot/src/share/vm/gc/shared/collectorPolicy.cpp
changeset 35864 40e215ce799a
parent 35521 3cb32806ed1d
child 37088 2f2b21b4df00
equal deleted inserted replaced
35857:1c930000fd18 35864:40e215ce799a
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   772   // we can to reclaim memory. Force collection of soft references. Force
   772   // we can to reclaim memory. Force collection of soft references. Force
   773   // a complete compaction of the heap. Any additional methods for finding
   773   // a complete compaction of the heap. Any additional methods for finding
   774   // free memory should be here, especially if they are expensive. If this
   774   // free memory should be here, especially if they are expensive. If this
   775   // attempt fails, an OOM exception will be thrown.
   775   // attempt fails, an OOM exception will be thrown.
   776   {
   776   {
   777     UIntXFlagSetting flag_change(MarkSweepAlwaysCompactCount, 1); // Make sure the heap is fully compacted
   777     UIntFlagSetting flag_change(MarkSweepAlwaysCompactCount, 1); // Make sure the heap is fully compacted
   778 
   778 
   779     gch->do_collection(true,                      // full
   779     gch->do_collection(true,                      // full
   780                        true,                      // clear_all_soft_refs
   780                        true,                      // clear_all_soft_refs
   781                        size,                      // size
   781                        size,                      // size
   782                        is_tlab,                   // is_tlab
   782                        is_tlab,                   // is_tlab