src/hotspot/share/memory/metaspace/metaspaceSizesSnapshot.hpp
author dcubed
Sat, 21 Sep 2019 10:13:25 -0400
changeset 58252 14c1ff687621
parent 55576 4d193e40e7af
permissions -rw-r--r--
8231323: ProblemList jdk/jfr/jcmd/TestJcmdConfigure.java Reviewed-by: ysuenaga
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55576
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     1
/*
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     2
 * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     3
 * Copyright (c) 2019, Twitter, Inc.
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     4
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     5
 *
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     6
 * This code is free software; you can redistribute it and/or modify it
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     7
 * under the terms of the GNU General Public License version 2 only, as
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     8
 * published by the Free Software Foundation.
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
     9
 *
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    10
 * This code is distributed in the hope that it will be useful, but WITHOUT
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    11
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    12
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    13
 * version 2 for more details (a copy is included in the LICENSE file that
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    14
 * accompanied this code).
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    15
 *
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    16
 * You should have received a copy of the GNU General Public License version
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    17
 * 2 along with this work; if not, write to the Free Software Foundation,
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    18
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    19
 *
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    20
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    21
 * or visit www.oracle.com if you need additional information or have any
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    22
 * questions.
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    23
 *
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    24
 */
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    25
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    26
#ifndef SHARE_MEMORY_METASPACE_METASPACESIZESSNAPSHOT_HPP
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    27
#define SHARE_MEMORY_METASPACE_METASPACESIZESSNAPSHOT_HPP
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    28
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    29
namespace metaspace {
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    30
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    31
class MetaspaceSizesSnapshot {
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    32
public:
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    33
  MetaspaceSizesSnapshot();
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    34
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    35
  size_t used() const { return _used; }
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    36
  size_t committed() const { return _committed; }
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    37
  size_t non_class_used() const { return _non_class_used; }
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    38
  size_t non_class_committed() const { return _non_class_committed; }
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    39
  size_t class_used() const { return _class_used; }
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    40
  size_t class_committed() const { return _class_committed; }
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    41
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    42
private:
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    43
  const size_t _used;
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    44
  const size_t _committed;
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    45
  const size_t _non_class_used;
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    46
  const size_t _non_class_committed;
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    47
  const size_t _class_used;
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    48
  const size_t _class_committed;
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    49
};
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    50
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    51
} // namespace metaspace
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    52
4d193e40e7af 8223575: add subspace transitions to gc+metaspace=info log lines
tonyp
parents:
diff changeset
    53
#endif // SHARE_MEMORY_METASPACE_METASPACESIZESSNAPSHOT_HPP