< prev index next >

src/hotspot/share/gc/shared/genArguments.cpp

Print this page


   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/shared/genArguments.hpp"
  27 #include "gc/shared/generation.hpp"
  28 #include "logging/log.hpp"
  29 #include "runtime/globals_extension.hpp"
  30 #include "runtime/java.hpp"
  31 #include "utilities/align.hpp"
  32 #include "utilities/globalDefinitions.hpp"
  33 
  34 size_t MinNewSize = 0;
  35 
  36 size_t MinOldSize = 0;
  37 size_t MaxOldSize = 0;
  38 
  39 size_t GenAlignment = 0;
  40 
  41 size_t GenArguments::conservative_max_heap_alignment() { return (size_t)Generation::GenGrain; }
  42 
  43 static size_t young_gen_size_lower_bound() {
  44   // The young generation must be aligned and have room for eden + two survivors
  45   return align_up(3 * SpaceAlignment, GenAlignment);
  46 }
  47 
  48 static size_t old_gen_size_lower_bound() {
  49   return align_up(SpaceAlignment, GenAlignment);




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/shared/genArguments.hpp"
  27 #include "gc/shared/generation.hpp"
  28 #include "logging/log.hpp"
  29 #include "runtime/globals.hpp"
  30 #include "runtime/java.hpp"
  31 #include "utilities/align.hpp"
  32 #include "utilities/globalDefinitions.hpp"
  33 
  34 size_t MinNewSize = 0;
  35 
  36 size_t MinOldSize = 0;
  37 size_t MaxOldSize = 0;
  38 
  39 size_t GenAlignment = 0;
  40 
  41 size_t GenArguments::conservative_max_heap_alignment() { return (size_t)Generation::GenGrain; }
  42 
  43 static size_t young_gen_size_lower_bound() {
  44   // The young generation must be aligned and have room for eden + two survivors
  45   return align_up(3 * SpaceAlignment, GenAlignment);
  46 }
  47 
  48 static size_t old_gen_size_lower_bound() {
  49   return align_up(SpaceAlignment, GenAlignment);


< prev index next >