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 #ifndef SHARE_VM_MEMORY_METASPACE_SHARED_HPP
25 #define SHARE_VM_MEMORY_METASPACE_SHARED_HPP
26
27 #include "classfile/compactHashtable.hpp"
28 #include "memory/allocation.hpp"
29 #include "memory/memRegion.hpp"
30 #include "runtime/virtualspace.hpp"
31 #include "utilities/exceptions.hpp"
32 #include "utilities/macros.hpp"
33
34 #define LargeSharedArchiveSize (300*M)
35 #define HugeSharedArchiveSize (800*M)
36 #define ReadOnlyRegionPercentage 0.4
37 #define ReadWriteRegionPercentage 0.55
38 #define MiscDataRegionPercentage 0.03
39 #define MiscCodeRegionPercentage 0.02
40 #define LargeThresholdClassCount 5000
41 #define HugeThresholdClassCount 40000
42
43 #define SET_ESTIMATED_SIZE(type, region) \
44 Shared ##region## Size = FLAG_IS_DEFAULT(Shared ##region## Size) ? \
45 (uintx)(type ## SharedArchiveSize * region ## RegionPercentage) : Shared ## region ## Size
46
47 class FileMapInfo;
48
49 class MetaspaceSharedStats VALUE_OBJ_CLASS_SPEC {
50 public:
|
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 #ifndef SHARE_VM_MEMORY_METASPACE_SHARED_HPP
25 #define SHARE_VM_MEMORY_METASPACE_SHARED_HPP
26
27 #include "classfile/compactHashtable.hpp"
28 #include "memory/allocation.hpp"
29 #include "memory/memRegion.hpp"
30 #include "memory/virtualspace.hpp"
31 #include "utilities/exceptions.hpp"
32 #include "utilities/macros.hpp"
33
34 #define LargeSharedArchiveSize (300*M)
35 #define HugeSharedArchiveSize (800*M)
36 #define ReadOnlyRegionPercentage 0.4
37 #define ReadWriteRegionPercentage 0.55
38 #define MiscDataRegionPercentage 0.03
39 #define MiscCodeRegionPercentage 0.02
40 #define LargeThresholdClassCount 5000
41 #define HugeThresholdClassCount 40000
42
43 #define SET_ESTIMATED_SIZE(type, region) \
44 Shared ##region## Size = FLAG_IS_DEFAULT(Shared ##region## Size) ? \
45 (uintx)(type ## SharedArchiveSize * region ## RegionPercentage) : Shared ## region ## Size
46
47 class FileMapInfo;
48
49 class MetaspaceSharedStats VALUE_OBJ_CLASS_SPEC {
50 public:
|