9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 #include "precompiled.hpp"
26 #include "memory/allocation.inline.hpp"
27 #include "memory/metaspace.hpp"
28 #include "runtime/mutex.hpp"
29 #include "runtime/mutexLocker.hpp"
30 #include "runtime/os.hpp"
31 #include "utilities/align.hpp"
32 #include "utilities/debug.hpp"
33 #include "utilities/globalDefinitions.hpp"
34 #include "utilities/ostream.hpp"
35 #include "unittest.hpp"
36
37 #define NUM_PARALLEL_METASPACES 50
38 #define MAX_PER_METASPACE_ALLOCATION_WORDSIZE (512 * K)
39
40 //#define DEBUG_VERBOSE true
41
42 #ifdef DEBUG_VERBOSE
43
44 struct chunkmanager_statistics_t {
45 int num_specialized_chunks;
46 int num_small_chunks;
47 int num_medium_chunks;
48 int num_humongous_chunks;
49 };
|
9 *
10 * This code is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 */
24
25 #include "precompiled.hpp"
26 #include "memory/allocation.inline.hpp"
27 #include "memory/metaspace.hpp"
28 #include "runtime/mutex.hpp"
29 #include "runtime/mutexLocker.inline.hpp"
30 #include "runtime/os.hpp"
31 #include "utilities/align.hpp"
32 #include "utilities/debug.hpp"
33 #include "utilities/globalDefinitions.hpp"
34 #include "utilities/ostream.hpp"
35 #include "unittest.hpp"
36
37 #define NUM_PARALLEL_METASPACES 50
38 #define MAX_PER_METASPACE_ALLOCATION_WORDSIZE (512 * K)
39
40 //#define DEBUG_VERBOSE true
41
42 #ifdef DEBUG_VERBOSE
43
44 struct chunkmanager_statistics_t {
45 int num_specialized_chunks;
46 int num_small_chunks;
47 int num_medium_chunks;
48 int num_humongous_chunks;
49 };
|