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 "memory/allocation.hpp"
28 #include "memory/memRegion.hpp"
29 #include "runtime/virtualspace.hpp"
30 #include "utilities/exceptions.hpp"
31 #include "utilities/macros.hpp"
32
33 #define LargeSharedArchiveSize (300*M)
34 #define HugeSharedArchiveSize (800*M)
35 #define ReadOnlyRegionPercentage 0.4
36 #define ReadWriteRegionPercentage 0.55
37 #define MiscDataRegionPercentage 0.03
38 #define MiscCodeRegionPercentage 0.02
39 #define LargeThresholdClassCount 5000
40 #define HugeThresholdClassCount 40000
41
42 #define SET_ESTIMATED_SIZE(type, region) \
43 Shared ##region## Size = FLAG_IS_DEFAULT(Shared ##region## Size) ? \
44 (uintx)(type ## SharedArchiveSize * region ## RegionPercentage) : Shared ## region ## Size
45
46 class FileMapInfo;
47
48 // Class Data Sharing Support
49 class MetaspaceShared : AllStatic {
50
51 // CDS support
52 static ReservedSpace* _shared_rs;
53 static int _max_alignment;
54 static bool _link_classes_made_progress;
55 static bool _check_classes_made_progress;
56 static bool _has_error_classes;
57 static bool _archive_loading_failed;
|
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 "memory/allocation.hpp"
28 #include "memory/memRegion.hpp"
29 #include "runtime/virtualspace.hpp"
30 #include "utilities/exceptions.hpp"
31 #include "utilities/macros.hpp"
32
33 #define LargeSharedArchiveSize (300*M)
34 #define HugeSharedArchiveSize (800*M)
35 #define ReadOnlyRegionPercentage 0.39
36 #define ReadWriteRegionPercentage 0.50
37 #define MiscDataRegionPercentage 0.09
38 #define MiscCodeRegionPercentage 0.02
39 #define LargeThresholdClassCount 5000
40 #define HugeThresholdClassCount 40000
41
42 #define SET_ESTIMATED_SIZE(type, region) \
43 Shared ##region## Size = FLAG_IS_DEFAULT(Shared ##region## Size) ? \
44 (uintx)(type ## SharedArchiveSize * region ## RegionPercentage) : Shared ## region ## Size
45
46 class FileMapInfo;
47
48 // Class Data Sharing Support
49 class MetaspaceShared : AllStatic {
50
51 // CDS support
52 static ReservedSpace* _shared_rs;
53 static int _max_alignment;
54 static bool _link_classes_made_progress;
55 static bool _check_classes_made_progress;
56 static bool _has_error_classes;
57 static bool _archive_loading_failed;
|