1 /* |
1 /* |
2 * Copyright (c) 2001, 2017, 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. |
446 inline void ModUnionClosure::do_MemRegion(MemRegion mr) { |
446 inline void ModUnionClosure::do_MemRegion(MemRegion mr) { |
447 // Align the end of mr so it's at a card boundary. |
447 // Align the end of mr so it's at a card boundary. |
448 // This is superfluous except at the end of the space; |
448 // This is superfluous except at the end of the space; |
449 // we should do better than this XXX |
449 // we should do better than this XXX |
450 MemRegion mr2(mr.start(), align_up(mr.end(), |
450 MemRegion mr2(mr.start(), align_up(mr.end(), |
451 CardTableModRefBS::card_size /* bytes */)); |
451 CardTable::card_size /* bytes */)); |
452 _t->mark_range(mr2); |
452 _t->mark_range(mr2); |
453 } |
453 } |
454 |
454 |
455 inline void ModUnionClosurePar::do_MemRegion(MemRegion mr) { |
455 inline void ModUnionClosurePar::do_MemRegion(MemRegion mr) { |
456 // Align the end of mr so it's at a card boundary. |
456 // Align the end of mr so it's at a card boundary. |
457 // This is superfluous except at the end of the space; |
457 // This is superfluous except at the end of the space; |
458 // we should do better than this XXX |
458 // we should do better than this XXX |
459 MemRegion mr2(mr.start(), align_up(mr.end(), |
459 MemRegion mr2(mr.start(), align_up(mr.end(), |
460 CardTableModRefBS::card_size /* bytes */)); |
460 CardTable::card_size /* bytes */)); |
461 _t->par_mark_range(mr2); |
461 _t->par_mark_range(mr2); |
462 } |
462 } |
463 |
463 |
464 #endif // SHARE_VM_GC_CMS_CONCURRENTMARKSWEEPGENERATION_INLINE_HPP |
464 #endif // SHARE_VM_GC_CMS_CONCURRENTMARKSWEEPGENERATION_INLINE_HPP |