src/hotspot/share/gc/g1/g1IHOPControl.cpp
changeset 47679 4cfcb7be4984
parent 47216 71c04702a3d5
child 51332 c25572739e7c
equal deleted inserted replaced
47678:c84eeb55c55e 47679:4cfcb7be4984
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    55   assert(_target_occupancy > 0, "Target occupancy still not updated yet.");
    55   assert(_target_occupancy > 0, "Target occupancy still not updated yet.");
    56   size_t cur_conc_mark_start_threshold = get_conc_mark_start_threshold();
    56   size_t cur_conc_mark_start_threshold = get_conc_mark_start_threshold();
    57   log_debug(gc, ihop)("Basic information (value update), threshold: " SIZE_FORMAT "B (%1.2f), target occupancy: " SIZE_FORMAT "B, current occupancy: " SIZE_FORMAT "B, "
    57   log_debug(gc, ihop)("Basic information (value update), threshold: " SIZE_FORMAT "B (%1.2f), target occupancy: " SIZE_FORMAT "B, current occupancy: " SIZE_FORMAT "B, "
    58                       "recent allocation size: " SIZE_FORMAT "B, recent allocation duration: %1.2fms, recent old gen allocation rate: %1.2fB/s, recent marking phase length: %1.2fms",
    58                       "recent allocation size: " SIZE_FORMAT "B, recent allocation duration: %1.2fms, recent old gen allocation rate: %1.2fB/s, recent marking phase length: %1.2fms",
    59                       cur_conc_mark_start_threshold,
    59                       cur_conc_mark_start_threshold,
    60                       cur_conc_mark_start_threshold * 100.0 / _target_occupancy,
    60                       percent_of(cur_conc_mark_start_threshold, _target_occupancy),
    61                       _target_occupancy,
    61                       _target_occupancy,
    62                       G1CollectedHeap::heap()->used(),
    62                       G1CollectedHeap::heap()->used(),
    63                       _last_allocated_bytes,
    63                       _last_allocated_bytes,
    64                       _last_allocation_time_s * 1000.0,
    64                       _last_allocation_time_s * 1000.0,
    65                       _last_allocation_time_s > 0.0 ? _last_allocated_bytes / _last_allocation_time_s : 0.0,
    65                       _last_allocation_time_s > 0.0 ? _last_allocated_bytes / _last_allocation_time_s : 0.0,