< prev index next >

src/hotspot/share/gc/g1/g1ConcurrentMark.cpp

Print this page
rev 49184 : imported patch 8197569-refactor-eager-reclaim

*** 1,7 **** /* ! * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 512,521 **** --- 512,529 ---- // we need this to make sure that the flag is on during the evac // pause with initial mark piggy-backed set_concurrent_marking_in_progress(); } + void G1ConcurrentMark::humongous_object_eagerly_reclaimed(HeapRegion* r) { + assert(SafepointSynchronize::is_at_safepoint(), "May only be called at a safepoint."); + + // Need to clear mark bit of the humongous object if already set and during a marking cycle. + if (_next_mark_bitmap->is_marked(r->bottom())) { + _next_mark_bitmap->clear(r->bottom()); + } + } void G1ConcurrentMark::reset_marking_state() { _global_mark_stack.set_empty(); // Expand the marking stack, if we have to and if we can.
< prev index next >