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

8294238: ZGC: Move CLD claimed mark clearing #10591

Closed
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
2 changes: 2 additions & 0 deletions src/hotspot/share/classfile/classLoaderData.cpp
Original file line number Diff line number Diff line change
@@ -283,9 +283,11 @@ void ClassLoaderData::clear_claim(int claim) {
}
}

#ifdef ASSERT
void ClassLoaderData::verify_not_claimed(int claim) {
assert((_claim & claim) == 0, "Found claim: %d bits in _claim: %d", claim, _claim);
}
#endif

bool ClassLoaderData::try_claim(int claim) {
for (;;) {
2 changes: 1 addition & 1 deletion src/hotspot/share/classfile/classLoaderData.hpp
Original file line number Diff line number Diff line change
@@ -209,7 +209,7 @@ class ClassLoaderData : public CHeapObj<mtClass> {
};
void clear_claim() { _claim = 0; }
void clear_claim(int claim);
void verify_not_claimed(int claim);
void verify_not_claimed(int claim) NOT_DEBUG_RETURN;
bool claimed() const { return _claim != 0; }
bool claimed(int claim) const { return (_claim & claim) == claim; }
bool try_claim(int claim);