author | tonyp |
Tue, 06 Aug 2019 15:03:48 -0400 | |
changeset 57662 | f81dbe27a7b1 |
permissions | -rw-r--r-- |
57662
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
1 |
/* |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
2 |
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
3 |
* Copyright (c) 2019, Twitter, Inc. |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
5 |
* |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
6 |
* This code is free software; you can redistribute it and/or modify it |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
7 |
* under the terms of the GNU General Public License version 2 only, as |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
8 |
* published by the Free Software Foundation. |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
9 |
* |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
12 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
13 |
* version 2 for more details (a copy is included in the LICENSE file that |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
14 |
* accompanied this code). |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
15 |
* |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
16 |
* You should have received a copy of the GNU General Public License version |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
17 |
* 2 along with this work; if not, write to the Free Software Foundation, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
18 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
19 |
* |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
20 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
21 |
* or visit www.oracle.com if you need additional information or have any |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
22 |
* questions. |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
23 |
* |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
24 |
*/ |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
25 |
|
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
26 |
#ifndef SHARE_GC_SHARED_PREGCVALUES_HPP |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
27 |
#define SHARE_GC_SHARED_PREGCVALUES_HPP |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
28 |
|
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
29 |
#include "memory/metaspace/metaspaceSizesSnapshot.hpp" |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
30 |
|
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
31 |
// Simple class for storing info about the heap at the start of GC, to be used |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
32 |
// after GC for comparison/printing. |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
33 |
class PreGenGCValues { |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
34 |
public: |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
35 |
PreGenGCValues(size_t young_gen_used, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
36 |
size_t young_gen_capacity, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
37 |
size_t eden_used, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
38 |
size_t eden_capacity, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
39 |
size_t from_used, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
40 |
size_t from_capacity, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
41 |
size_t old_gen_used, |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
42 |
size_t old_gen_capacity) |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
43 |
: _young_gen_used(young_gen_used), |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
44 |
_young_gen_capacity(young_gen_capacity), |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
45 |
_eden_used(eden_used), |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
46 |
_eden_capacity(eden_capacity), |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
47 |
_from_used(from_used), |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
48 |
_from_capacity(from_capacity), |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
49 |
_old_gen_used(old_gen_used), |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
50 |
_old_gen_capacity(old_gen_capacity) { } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
51 |
|
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
52 |
size_t young_gen_used() const { return _young_gen_used; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
53 |
size_t young_gen_capacity() const { return _young_gen_capacity; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
54 |
size_t eden_used() const { return _eden_used; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
55 |
size_t eden_capacity() const { return _eden_capacity; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
56 |
size_t from_used() const { return _from_used; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
57 |
size_t from_capacity() const { return _from_capacity; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
58 |
size_t old_gen_used() const { return _old_gen_used; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
59 |
size_t old_gen_capacity() const { return _old_gen_capacity; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
60 |
const metaspace::MetaspaceSizesSnapshot& metaspace_sizes() const { return _meta_sizes; } |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
61 |
|
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
62 |
private: |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
63 |
const size_t _young_gen_used; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
64 |
const size_t _young_gen_capacity; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
65 |
const size_t _eden_used; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
66 |
const size_t _eden_capacity; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
67 |
const size_t _from_used; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
68 |
const size_t _from_capacity; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
69 |
const size_t _old_gen_used; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
70 |
const size_t _old_gen_capacity; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
71 |
const metaspace::MetaspaceSizesSnapshot _meta_sizes; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
72 |
}; |
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
73 |
|
f81dbe27a7b1
8227225: ParallelGC: add subspace transitions for young gen for gc+heap=info log lines
tonyp
parents:
diff
changeset
|
74 |
#endif // SHARE_GC_SHARED_PREGCVALUES_HPP |