--- old/src/hotspot/share/gc/parallel/adjoiningGenerations.cpp 2018-09-19 09:02:55.197425100 -0700 +++ new/src/hotspot/share/gc/parallel/adjoiningGenerations.cpp 2018-09-19 09:02:53.995696300 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -41,7 +41,7 @@ GenerationSizer* policy, size_t alignment) : _virtual_spaces(new AdjoiningVirtualSpaces(old_young_rs, policy->min_old_size(), - policy->min_young_size(), alignment) ) { + policy->min_young_size(), alignment)) { size_t init_low_byte_size = policy->initial_old_size(); size_t min_low_byte_size = policy->min_old_size(); size_t max_low_byte_size = policy->max_old_size(); @@ -62,8 +62,8 @@ // Does the actual creation of the virtual spaces _virtual_spaces->initialize(max_low_byte_size, - init_low_byte_size, - init_high_byte_size); + init_low_byte_size, + init_high_byte_size); // Place the young gen at the high end. Passes in the virtual space. _young_gen = new ASPSYoungGen(_virtual_spaces->high(), @@ -90,6 +90,7 @@ assert(old_young_rs.size() >= old_gen()->gen_size_limit(), "Consistency check"); } else { + // Layout the reserved space for the generations. // If OldGen is allocated on nv-dimm, we need to split the reservation (this is required for windows). ReservedSpace old_rs =