test/hotspot/gtest/memory/test_chunkManager.cpp
author stuefe
Mon, 19 Mar 2018 11:38:45 +0100
changeset 49453 c8ab058dcf1f
child 49798 4bb2a92c13ea
permissions -rw-r--r--
8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest Reviewed-by: zgu, coleenp
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
49453
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     1
/*
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     2
 * Copyright (c) 2016, 2018 Oracle and/or its affiliates. All rights reserved.
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     4
 *
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     7
 * published by the Free Software Foundation.
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     8
 *
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    13
 * accompanied this code).
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    14
 *
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    18
 *
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    21
 * questions.
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    22
 */
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    23
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    24
#include "precompiled.hpp"
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    25
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    26
// The test function is only available in debug builds
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    27
#ifdef ASSERT
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    28
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    29
#include "unittest.hpp"
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    30
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    31
void ChunkManager_test_list_index();
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    32
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    33
TEST(ChunkManager, list_index) {
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    34
  // The ChunkManager is only available in metaspace.cpp,
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    35
  // so the test code is located in that file.
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    36
  ChunkManager_test_list_index();
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    37
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    38
}
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    39
c8ab058dcf1f 8199667: Unify metaspace list index handling and reinstantiate ChunkManager listindex gtest
stuefe
parents:
diff changeset
    40
#endif // ASSERT