Mercurial > hg > truffle
comparison src/share/vm/memory/modRefBarrierSet.hpp @ 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 | f95d63e2154a |
children | 063382f9b575 |
comparison
equal
deleted
inserted
replaced
3254:59766fd005ff | 3256:c69b1043dfb1 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 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. |
86 } | 86 } |
87 void read_region(MemRegion mr) { | 87 void read_region(MemRegion mr) { |
88 assert(false, "can't call"); | 88 assert(false, "can't call"); |
89 } | 89 } |
90 | 90 |
91 // Invoke "cl->do_oop" on (the address of) every possibly-modifed | |
92 // reference field in objects in "sp". If "clear" is "true", the oops | |
93 // are no longer considered possibly modified after application of the | |
94 // closure. If' "before_save_marks" is true, oops in objects allocated | |
95 // after the last call to "save_marks" on "sp" will not be considered. | |
96 virtual void mod_oop_in_space_iterate(Space* sp, OopClosure* cl, | |
97 bool clear = false, | |
98 bool before_save_marks = false) = 0; | |
99 | |
100 // Causes all refs in "mr" to be assumed to be modified. If "whole_heap" | 91 // Causes all refs in "mr" to be assumed to be modified. If "whole_heap" |
101 // is true, the caller asserts that the entire heap is being invalidated, | 92 // is true, the caller asserts that the entire heap is being invalidated, |
102 // which may admit an optimized implementation for some barriers. | 93 // which may admit an optimized implementation for some barriers. |
103 virtual void invalidate(MemRegion mr, bool whole_heap = false) = 0; | 94 virtual void invalidate(MemRegion mr, bool whole_heap = false) = 0; |
104 | 95 |