src/hotspot/share/gc/cms/allocationStats.hpp
changeset 49392 2956d0ece7a9
parent 48157 7c4d43c26352
child 53244 9807daeb47c4
equal deleted inserted replaced
49391:02076019c25d 49392:2956d0ece7a9
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2018, 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.
    25 #ifndef SHARE_VM_GC_CMS_ALLOCATIONSTATS_HPP
    25 #ifndef SHARE_VM_GC_CMS_ALLOCATIONSTATS_HPP
    26 #define SHARE_VM_GC_CMS_ALLOCATIONSTATS_HPP
    26 #define SHARE_VM_GC_CMS_ALLOCATIONSTATS_HPP
    27 
    27 
    28 #include "gc/shared/gcUtil.hpp"
    28 #include "gc/shared/gcUtil.hpp"
    29 #include "logging/log.hpp"
    29 #include "logging/log.hpp"
    30 #include "memory/allocation.hpp"
       
    31 #include "utilities/globalDefinitions.hpp"
    30 #include "utilities/globalDefinitions.hpp"
    32 #include "utilities/macros.hpp"
    31 #include "utilities/macros.hpp"
    33 
    32 
    34 class AllocationStats VALUE_OBJ_CLASS_SPEC {
    33 class AllocationStats {
    35   // A duration threshold (in ms) used to filter
    34   // A duration threshold (in ms) used to filter
    36   // possibly unreliable samples.
    35   // possibly unreliable samples.
    37   static float _threshold;
    36   static float _threshold;
    38 
    37 
    39   // We measure the demand between the end of the previous sweep and
    38   // We measure the demand between the end of the previous sweep and