mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8039089: List verification enabled in product builds
Replaced the verification call to a conditional one that only runs verification in debug builds. Reviewed-by: brutisso, tschatzl
This commit is contained in:
parent
fd0bcaa2b2
commit
034d486b08
2 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@
|
|||
inline void HeapRegionSetBase::add(HeapRegion* hr) {
|
||||
check_mt_safety();
|
||||
assert(hr->containing_set() == NULL, hrs_ext_msg(this, "should not already have a containing set %u"));
|
||||
assert(hr->next() == NULL, hrs_ext_msg(this, "should not already be linked"));
|
||||
assert(hr->next() == NULL && hr->prev() == NULL, hrs_ext_msg(this, "should not already be linked"));
|
||||
|
||||
_count.increment(1u, hr->capacity());
|
||||
hr->set_containing_set(this);
|
||||
|
@ -40,7 +40,7 @@ inline void HeapRegionSetBase::add(HeapRegion* hr) {
|
|||
inline void HeapRegionSetBase::remove(HeapRegion* hr) {
|
||||
check_mt_safety();
|
||||
verify_region(hr);
|
||||
assert(hr->next() == NULL, hrs_ext_msg(this, "should already be unlinked"));
|
||||
assert(hr->next() == NULL && hr->prev() == NULL, hrs_ext_msg(this, "should already be unlinked"));
|
||||
|
||||
hr->set_containing_set(NULL);
|
||||
assert(_count.length() > 0, hrs_ext_msg(this, "pre-condition"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue