equal
deleted
inserted
replaced
176 // committed in os pages as well. Make sure they are entirely full (to |
176 // committed in os pages as well. Make sure they are entirely full (to |
177 // avoid partial page problems), e.g. if 512 bytes heap corresponds to 1 |
177 // avoid partial page problems), e.g. if 512 bytes heap corresponds to 1 |
178 // byte entry and the os page size is 4096, the maximum heap size should |
178 // byte entry and the os page size is 4096, the maximum heap size should |
179 // be 512*4096 = 2MB aligned. |
179 // be 512*4096 = 2MB aligned. |
180 |
180 |
181 // There is only the GenRemSet in Hotspot and only the GenRemSet::CardTable |
181 size_t alignment = GenRemSet::max_alignment_constraint(); |
182 // is supported. |
|
183 // Requirements of any new remembered set implementations must be added here. |
|
184 size_t alignment = GenRemSet::max_alignment_constraint(GenRemSet::CardTable); |
|
185 |
182 |
186 // Parallel GC does its own alignment of the generations to avoid requiring a |
183 // Parallel GC does its own alignment of the generations to avoid requiring a |
187 // large page (256M on some platforms) for the permanent generation. The |
184 // large page (256M on some platforms) for the permanent generation. The |
188 // other collectors should also be updated to do their own alignment and then |
185 // other collectors should also be updated to do their own alignment and then |
189 // this use of lcm() should be removed. |
186 // this use of lcm() should be removed. |