equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2018, 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. |
32 #include "utilities/align.hpp" |
32 #include "utilities/align.hpp" |
33 |
33 |
34 void ObjectStartArray::initialize(MemRegion reserved_region) { |
34 void ObjectStartArray::initialize(MemRegion reserved_region) { |
35 // We're based on the assumption that we use the same |
35 // We're based on the assumption that we use the same |
36 // size blocks as the card table. |
36 // size blocks as the card table. |
37 assert((int)block_size == (int)CardTableModRefBS::card_size, "Sanity"); |
37 assert((int)block_size == (int)CardTable::card_size, "Sanity"); |
38 assert((int)block_size <= 512, "block_size must be less than or equal to 512"); |
38 assert((int)block_size <= 512, "block_size must be less than or equal to 512"); |
39 |
39 |
40 // Calculate how much space must be reserved |
40 // Calculate how much space must be reserved |
41 _reserved_region = reserved_region; |
41 _reserved_region = reserved_region; |
42 |
42 |