equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2013, 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. |
24 |
24 |
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_ALLOCATIONSTATS_HPP |
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_SHARED_ALLOCATIONSTATS_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_ALLOCATIONSTATS_HPP |
26 #define SHARE_VM_GC_IMPLEMENTATION_SHARED_ALLOCATIONSTATS_HPP |
27 |
27 |
28 #include "utilities/macros.hpp" |
28 #include "utilities/macros.hpp" |
29 #if INCLUDE_ALL_GCS |
|
30 #include "gc_implementation/shared/gcUtil.hpp" |
|
31 #include "memory/allocation.hpp" |
29 #include "memory/allocation.hpp" |
32 #include "utilities/globalDefinitions.hpp" |
30 #include "utilities/globalDefinitions.hpp" |
33 #endif // INCLUDE_ALL_GCS |
31 #include "gc_implementation/shared/gcUtil.hpp" |
34 |
32 |
35 class AllocationStats VALUE_OBJ_CLASS_SPEC { |
33 class AllocationStats VALUE_OBJ_CLASS_SPEC { |
36 // A duration threshold (in ms) used to filter |
34 // A duration threshold (in ms) used to filter |
37 // possibly unreliable samples. |
35 // possibly unreliable samples. |
38 static float _threshold; |
36 static float _threshold; |