< prev index next >
src/hotspot/share/gc/z/zHeap.cpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2015, 2019, 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) 2015, 2020, 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.
*** 410,426 ****
for (ZForwarding* forwarding; rs_iter.next(&forwarding);) {
_forwarding_table.insert(forwarding);
}
// Update statistics
! ZStatRelocation::set_at_select_relocation_set(selector.stats_small(),
! selector.stats_medium(),
! selector.stats_large());
! ZStatHeap::set_at_select_relocation_set(selector.stats_small(),
! selector.stats_medium(),
! selector.stats_large(),
! reclaimed());
}
void ZHeap::reset_relocation_set() {
// Reset forwarding table
ZRelocationSetIterator iter(&_relocation_set);
--- 410,421 ----
for (ZForwarding* forwarding; rs_iter.next(&forwarding);) {
_forwarding_table.insert(forwarding);
}
// Update statistics
! ZStatRelocation::set_at_select_relocation_set(selector.stats());
! ZStatHeap::set_at_select_relocation_set(selector.stats(), reclaimed());
}
void ZHeap::reset_relocation_set() {
// Reset forwarding table
ZRelocationSetIterator iter(&_relocation_set);
< prev index next >