src/hotspot/cpu/aarch64/gc/z/zGlobals_aarch64.hpp
author chegar
Thu, 17 Oct 2019 20:54:25 +0100
branchdatagramsocketimpl-branch
changeset 58679 9c3209ff7550
parent 58678 9cf78a70fa4f
parent 58468 97cd0aa39787
permissions -rw-r--r--
datagramsocketimpl-branch: merge with default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55379
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     1
/*
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     2
 * Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     4
 *
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     7
 * published by the Free Software Foundation.
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     8
 *
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    13
 * accompanied this code).
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    14
 *
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    18
 *
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    21
 * questions.
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    22
 */
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    23
57962
4b436b5d1630 8230307: ZGC: Make zGlobals and zArguments OS agnostic
eosterlund
parents: 55379
diff changeset
    24
#ifndef CPU_AARCH64_GC_Z_ZGLOBALS_AARCH64_HPP
4b436b5d1630 8230307: ZGC: Make zGlobals and zArguments OS agnostic
eosterlund
parents: 55379
diff changeset
    25
#define CPU_AARCH64_GC_Z_ZGLOBALS_AARCH64_HPP
55379
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    26
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    27
//
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    28
// Page Allocation Tiers
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    29
// ---------------------
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    30
//
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    31
//  Page Type     Page Size     Object Size Limit     Object Alignment
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    32
//  ------------------------------------------------------------------
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    33
//  Small         2M            <= 265K               <MinObjAlignmentInBytes>
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    34
//  Medium        32M           <= 4M                 4K
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    35
//  Large         X*M           > 4M                  2M
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    36
//  ------------------------------------------------------------------
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    37
//
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    38
const size_t ZPlatformGranuleSizeShift      = 21; // 2MB
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    39
const size_t ZPlatformNMethodDisarmedOffset = 4;
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    40
const size_t ZPlatformCacheLineSize         = 64;
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    41
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    42
uintptr_t    ZPlatformAddressBase();
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    43
size_t       ZPlatformAddressOffsetBits();
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    44
size_t       ZPlatformAddressMetadataShift();
865775b86780 8214527: ZGC for Aarch64
smonteith
parents:
diff changeset
    45
57962
4b436b5d1630 8230307: ZGC: Make zGlobals and zArguments OS agnostic
eosterlund
parents: 55379
diff changeset
    46
#endif // CPU_AARCH64_GC_Z_ZGLOBALS_AARCH64_HPP