< prev index next >
src/share/vm/gc_implementation/shenandoah/shenandoahMetrics.cpp
Print this page
rev 10715 : [backport] Cleanup up superfluous newlines
rev 10772 : [backport] Update copyrights
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2013, 2015, Red Hat, Inc. and/or its affiliates.
+ * Copyright (c) 2013, 2018, Red Hat, Inc. All rights reserved.
*
* 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.
*
@@ -133,11 +133,10 @@
log_info(gc, ergo)("Internal frag: before: %.1f%%, after: %.1f%%", _if_before * 100, _if_after * 100);
log_info(gc, ergo)("External frag: before: %.1f%%, after: %.1f%%", _ef_before * 100, _ef_after * 100);
}
bool ShenandoahMetricsSnapshot::is_good_progress(const char *label) {
-
// Under the critical threshold? Declare failure.
size_t free_actual = _heap->free_set()->available();
size_t free_expected = _heap->max_capacity() / 100 * ShenandoahCriticalFreeThreshold;
if (free_actual < free_expected) {
log_info(gc, ergo)("Not enough free space (" SIZE_FORMAT "M, need " SIZE_FORMAT "M) after %s",
@@ -173,6 +172,5 @@
if_actual * 100, if_expected * 100, label);
// Nothing good had happened.
return false;
}
-
< prev index next >