Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/cardTableRS.cpp @ 3256:c69b1043dfb1
7036482: clear argument is redundant and unused in cardtable methods
Summary: Removed the unused clear argument to various cardtbale methods and unused mod_oop_in_space_iterate method. Unrelated to synopsis, added a pair of clarifying parens in AllocationStats constructor.
Reviewed-by: brutisso, jcoomes
author | ysr |
---|---|
date | Thu, 14 Apr 2011 12:10:15 -0700 |
parents | 5134fa1cfe63 |
children | c48ad6ab8bdf |
comparison
equal
deleted
inserted
replaced
3254:59766fd005ff | 3256:c69b1043dfb1 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2001, 2011, 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. |
245 DirtyCardToOopClosure* dcto_cl = sp->new_dcto_cl(cl, _ct_bs->precision(), | 245 DirtyCardToOopClosure* dcto_cl = sp->new_dcto_cl(cl, _ct_bs->precision(), |
246 cl->gen_boundary()); | 246 cl->gen_boundary()); |
247 ClearNoncleanCardWrapper clear_cl(dcto_cl, this); | 247 ClearNoncleanCardWrapper clear_cl(dcto_cl, this); |
248 | 248 |
249 _ct_bs->non_clean_card_iterate(sp, sp->used_region_at_save_marks(), | 249 _ct_bs->non_clean_card_iterate(sp, sp->used_region_at_save_marks(), |
250 dcto_cl, &clear_cl, false); | 250 dcto_cl, &clear_cl); |
251 } | 251 } |
252 | 252 |
253 void CardTableRS::clear_into_younger(Generation* gen, bool clear_perm) { | 253 void CardTableRS::clear_into_younger(Generation* gen, bool clear_perm) { |
254 GenCollectedHeap* gch = GenCollectedHeap::heap(); | 254 GenCollectedHeap* gch = GenCollectedHeap::heap(); |
255 // Generations younger than gen have been evacuated. We can clear | 255 // Generations younger than gen have been evacuated. We can clear |