< prev index next >

src/hotspot/share/gc/z/zArguments.cpp

Print this page


  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 #include "precompiled.hpp"
  25 #include "gc/z/zAddressSpaceLimit.hpp"
  26 #include "gc/z/zArguments.hpp"
  27 #include "gc/z/zCollectedHeap.hpp"
  28 #include "gc/z/zHeuristics.hpp"
  29 #include "gc/shared/gcArguments.hpp"
  30 #include "runtime/globals.hpp"
  31 #include "runtime/globals_extension.hpp"
  32 
  33 void ZArguments::initialize_alignments() {
  34   SpaceAlignment = ZGranuleSize;
  35   HeapAlignment = SpaceAlignment;
  36 }
  37 
  38 void ZArguments::initialize() {
  39   GCArguments::initialize();
  40 
  41   // Check mark stack size
  42   const size_t mark_stack_space_limit = ZAddressSpaceLimit::mark_stack();
  43   if (ZMarkStackSpaceLimit > mark_stack_space_limit) {
  44     if (!FLAG_IS_DEFAULT(ZMarkStackSpaceLimit)) {
  45       vm_exit_during_initialization("ZMarkStackSpaceLimit too large for limited address space");
  46     }
  47     FLAG_SET_DEFAULT(ZMarkStackSpaceLimit, mark_stack_space_limit);
  48   }
  49 
  50   // Enable NUMA by default
  51   if (FLAG_IS_DEFAULT(UseNUMA)) {




  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 #include "precompiled.hpp"
  25 #include "gc/z/zAddressSpaceLimit.hpp"
  26 #include "gc/z/zArguments.hpp"
  27 #include "gc/z/zCollectedHeap.hpp"
  28 #include "gc/z/zHeuristics.hpp"
  29 #include "gc/shared/gcArguments.hpp"
  30 #include "runtime/globals.hpp"

  31 
  32 void ZArguments::initialize_alignments() {
  33   SpaceAlignment = ZGranuleSize;
  34   HeapAlignment = SpaceAlignment;
  35 }
  36 
  37 void ZArguments::initialize() {
  38   GCArguments::initialize();
  39 
  40   // Check mark stack size
  41   const size_t mark_stack_space_limit = ZAddressSpaceLimit::mark_stack();
  42   if (ZMarkStackSpaceLimit > mark_stack_space_limit) {
  43     if (!FLAG_IS_DEFAULT(ZMarkStackSpaceLimit)) {
  44       vm_exit_during_initialization("ZMarkStackSpaceLimit too large for limited address space");
  45     }
  46     FLAG_SET_DEFAULT(ZMarkStackSpaceLimit, mark_stack_space_limit);
  47   }
  48 
  49   // Enable NUMA by default
  50   if (FLAG_IS_DEFAULT(UseNUMA)) {


< prev index next >