mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8199007: ClassLoaderDataGraph::unload_list_contains() is wrong
The function isn't needed any longer. Reviewed-by: stuefe, stefank
This commit is contained in:
parent
7b568da79b
commit
f8ee0063b1
3 changed files with 1 additions and 16 deletions
|
@ -1223,17 +1223,6 @@ GrowableArray<ClassLoaderData*>* ClassLoaderDataGraph::new_clds() {
|
|||
return array;
|
||||
}
|
||||
|
||||
bool ClassLoaderDataGraph::unload_list_contains(const void* x) {
|
||||
assert(SafepointSynchronize::is_at_safepoint(), "only safe to call at safepoint");
|
||||
for (ClassLoaderData* cld = _unloading; cld != NULL; cld = cld->next()) {
|
||||
// Needs fixing, see JDK-8199007.
|
||||
if (cld->metaspace_or_null() != NULL && Metaspace::contains(x)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
bool ClassLoaderDataGraph::contains_loader_data(ClassLoaderData* loader_data) {
|
||||
for (ClassLoaderData* data = _head; data != NULL; data = data->next()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue