src/share/vm/memory/collectorPolicy.cpp

changeset 7301
d63ce76a0f0e
parent 7074
833b0f92429a
child 7535
7ae4e26cb1e0
child 7686
fb69749583e8
equal deleted inserted replaced
7300:03e6d34be1f5 7301:d63ce76a0f0e
181 // There is only the GenRemSet in Hotspot and only the GenRemSet::CardTable 181 // There is only the GenRemSet in Hotspot and only the GenRemSet::CardTable
182 // is supported. 182 // is supported.
183 // Requirements of any new remembered set implementations must be added here. 183 // Requirements of any new remembered set implementations must be added here.
184 size_t alignment = GenRemSet::max_alignment_constraint(GenRemSet::CardTable); 184 size_t alignment = GenRemSet::max_alignment_constraint(GenRemSet::CardTable);
185 185
186 // Parallel GC does its own alignment of the generations to avoid requiring a 186 if (UseLargePages) {
187 // large page (256M on some platforms) for the permanent generation. The 187 // In presence of large pages we have to make sure that our
188 // other collectors should also be updated to do their own alignment and then 188 // alignment is large page aware.
189 // this use of lcm() should be removed.
190 if (UseLargePages && !UseParallelGC) {
191 // in presence of large pages we have to make sure that our
192 // alignment is large page aware
193 alignment = lcm(os::large_page_size(), alignment); 189 alignment = lcm(os::large_page_size(), alignment);
194 } 190 }
195 191
196 return alignment; 192 return alignment;
197 } 193 }

mercurial