mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-24 04:54:40 +02:00
8010722: assert: failed: heap size is too big for compressed oops
Use conservative assumptions of required alignment for the various garbage collector components into account when determining the maximum heap size that supports compressed oops. Using this conservative value avoids several circular dependencies in the calculation. Reviewed-by: stefank, dholmes
This commit is contained in:
parent
6b12e05140
commit
962008f22b
22 changed files with 363 additions and 42 deletions
|
@ -139,7 +139,10 @@ class os: AllStatic {
|
|||
|
||||
public:
|
||||
static void init(void); // Called before command line parsing
|
||||
static void init_before_ergo(void); // Called after command line parsing
|
||||
// before VM ergonomics processing.
|
||||
static jint init_2(void); // Called after command line parsing
|
||||
// and VM ergonomics processing
|
||||
static void init_globals(void) { // Called from init_globals() in init.cpp
|
||||
init_globals_ext();
|
||||
}
|
||||
|
@ -254,6 +257,11 @@ class os: AllStatic {
|
|||
static size_t page_size_for_region(size_t region_min_size,
|
||||
size_t region_max_size,
|
||||
uint min_pages);
|
||||
// Return the largest page size that can be used
|
||||
static size_t max_page_size() {
|
||||
// The _page_sizes array is sorted in descending order.
|
||||
return _page_sizes[0];
|
||||
}
|
||||
|
||||
// Methods for tracing page sizes returned by the above method; enabled by
|
||||
// TracePageSizes. The region_{min,max}_size parameters should be the values
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue