Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
8259859: Missing metaspace NMT memory tag
Reviewed-by: iklam
  • Loading branch information
zhengyu123 committed Jan 19, 2021
1 parent 33dcc00 commit a37cd5a3133d7c66942919655d977912491d5b8c
Showing 1 changed file with 2 additions and 0 deletions.
@@ -42,6 +42,7 @@
#include "runtime/globals.hpp"
#include "runtime/mutexLocker.hpp"
#include "runtime/os.hpp"
#include "services/memTracker.hpp"
#include "utilities/align.hpp"
#include "utilities/debug.hpp"
#include "utilities/globalDefinitions.hpp"
@@ -248,6 +249,7 @@ VirtualSpaceNode* VirtualSpaceNode::create_node(size_t word_size,
if (!rs.is_reserved()) {
vm_exit_out_of_memory(word_size * BytesPerWord, OOM_MMAP_ERROR, "Failed to reserve memory for metaspace");
MemTracker::record_virtual_memory_type(rs.base(), mtMetaspace);
assert_is_aligned(rs.base(), chunklevel::MAX_CHUNK_BYTE_SIZE);
return new VirtualSpaceNode(rs, true, limiter, reserve_words_counter, commit_words_counter);

0 comments on commit a37cd5a

Please sign in to comment.