RFR: 8079080: ConcurrentMark::mark_stack_push(oop) is unused
thomas.schatzl at oracle.com
Thu Apr 30 07:57:17 UTC 2015
On Wed, 2015-04-29 at 19:42 -0400, Kim Barrett wrote:
> Please review this cleanup of ConcurrentMark and CMMarkStack.
> The following functions were unused, so are being removed:
> - ConcurrentMark::mark_stack_push(oop) - the other overload is used and retained.
> - CMMarkStack::push(oop)
> - CMMarkStack::par_push(oop)
> - CMMarkStack::par_adjoin_arr(oop*, int)
> In addition, CMMarkStack::pop() is only used in the implementation of
> CMMarkStack::drain(), so is being made private.
while cleaning up there, could you also remove the following places:
- "friend class CMGlobalObjectClosure" - there is no
- CMMarkStack::_max_stack can be removed. While the member is updated in
non-product builds, the value is never used anywhere.
- CMMarkStack::isFull() is not referenced
- maybe in the declaration of ConcurrentMark::_remark_mark_times and
ConcurrentMark::_remark_weak_ref_times the extra space could be removed.
More information about the hotspot-gc-dev