/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "gc_implementation/g1/heapRegionSet.hpp"
//////////////////// HeapRegionSetBase ////////////////////
// Assumes the caller has already verified the region.
_length += 1;
}
hr->set_containing_set(this);
}
// Assumes the caller has already verified the region.
_length -= 1;
hrs_err_msg("[%s] region's region num: %u "
"should be <= region num: %u",
"should be <= used bytes: "SIZE_FORMAT,
}
hrs_assert_region_ok(this, hr, this);
}
//////////////////// HeapRegionSet ////////////////////
hrs_assert_mt_safety_ok(this);
// add_internal() will verify the region.
}
hrs_assert_mt_safety_ok(this);
// remove_internal() will verify the region.
}
// No need to fo the MT safety check here given that this method
// does not update the contents of the set but instead accumulates
// the changes in proxy_set which is assumed to be thread-local.
hrs_assert_sets_match(this, proxy_set);
hrs_assert_region_ok(this, hr, this);
}
//////////////////// HeapRegionLinkedList ////////////////////
hrs_assert_mt_safety_ok(this);
hrs_ext_msg(this, "invariant"));
// add_internal() will verify the region.
// Now link the region.
} else {
}
}
hrs_assert_mt_safety_ok(this);
hrs_ext_msg(this, "invariant"));
// add_internal() will verify the region.
// Now link the region.
} else {
}
}
hrs_assert_mt_safety_ok(this);
hrs_ext_msg(this, "invariant"));
// We need to unlink it first.
}
// remove_internal() will verify the region.
return hr;
}
hrs_assert_mt_safety_ok(this);
if (!is_empty()) {
return remove_head();
} else {
return NULL;
}
}
#endif // SHARE_VM_GC_IMPLEMENTATION_G1_HEAPREGIONSET_INLINE_HPP