equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
176 // called at a point where no concurrent updates to the various |
176 // called at a point where no concurrent updates to the various |
177 // values we read here are possible (i.e., at a STW phase at the end |
177 // values we read here are possible (i.e., at a STW phase at the end |
178 // of a GC). |
178 // of a GC). |
179 |
179 |
180 uint young_list_length = g1->young_list()->length(); |
180 uint young_list_length = g1->young_list()->length(); |
181 uint survivor_list_length = g1->g1_policy()->recorded_survivor_regions(); |
181 uint survivor_list_length = g1->young_list()->survivor_length(); |
182 assert(young_list_length >= survivor_list_length, "invariant"); |
182 assert(young_list_length >= survivor_list_length, "invariant"); |
183 uint eden_list_length = young_list_length - survivor_list_length; |
183 uint eden_list_length = young_list_length - survivor_list_length; |
184 // Max length includes any potential extensions to the young gen |
184 // Max length includes any potential extensions to the young gen |
185 // we'll do when the GC locker is active. |
185 // we'll do when the GC locker is active. |
186 uint young_list_max_length = g1->g1_policy()->young_list_max_length(); |
186 uint young_list_max_length = g1->g1_policy()->young_list_max_length(); |