Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8332042: Move MEMFLAGS to its own include file #19172

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/hotspot/share/nmt/mallocHeader.cpp
Original file line number Diff line number Diff line change
@@ -26,11 +26,17 @@

#include "nmt/mallocHeader.inline.hpp"
#include "nmt/mallocSiteTable.hpp"
#include "nmt/memflags.hpp"
#include "runtime/os.hpp"
#include "utilities/debug.hpp"
#include "utilities/globalDefinitions.hpp"
#include "utilities/nativeCallStack.hpp"
#include "utilities/ostream.hpp"

// The malloc header, as well as the coming VMATree implementation, rely on MEMFLAGS
// fitting into eight bits.
STATIC_ASSERT(sizeof(MEMFLAGS) == sizeof(uint8_t));

void MallocHeader::print_block_on_error(outputStream* st, address bad_address) const {
assert(bad_address >= (address)this, "sanity");

2 changes: 1 addition & 1 deletion src/hotspot/share/nmt/mallocTracker.hpp
Original file line number Diff line number Diff line change
@@ -26,8 +26,8 @@
#ifndef SHARE_NMT_MALLOCTRACKER_HPP
#define SHARE_NMT_MALLOCTRACKER_HPP

#include "nmt/memflags.hpp"
#include "nmt/mallocHeader.hpp"
#include "nmt/memflags.hpp"
#include "nmt/nmtCommon.hpp"
#include "runtime/atomic.hpp"
#include "runtime/threadCritical.hpp"
32 changes: 0 additions & 32 deletions src/hotspot/share/nmt/memflags.cpp

This file was deleted.

1 change: 0 additions & 1 deletion src/hotspot/share/services/mallocLimit.cpp
Original file line number Diff line number Diff line change
@@ -24,7 +24,6 @@
*/

#include "precompiled.hpp"

#include "nmt/memflags.hpp"
#include "nmt/nmtCommon.hpp"
#include "runtime/java.hpp"