Skip to content

Commit

Permalink
8340864: Remove unused lines related to vmClasses
Browse files Browse the repository at this point in the history
Reviewed-by: shade, kvn
  • Loading branch information
iklam committed Sep 25, 2024
1 parent 84751cb commit 8f75619
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 20 deletions.
7 changes: 0 additions & 7 deletions src/hotspot/share/classfile/systemDictionary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,6 @@ class SystemDictionary : AllStatic {
const char* message);
static const char* find_nest_host_error(const constantPoolHandle& pool, int which);

protected:
static InstanceKlass* _well_known_klasses[];

private:
// table of box klasses (int_klass, etc.)
static InstanceKlass* _box_klasses[T_VOID+1];

static OopHandle _java_system_loader;
static OopHandle _java_platform_loader;

Expand Down
10 changes: 0 additions & 10 deletions src/hotspot/share/classfile/vmClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ InstanceKlass* vmClasses::_klasses[static_cast<int>(vmClassID::LIMIT)]
= { nullptr /*, nullptr...*/ };
InstanceKlass* vmClasses::_box_klasses[T_VOID+1] = { nullptr /*, nullptr...*/ };


// CDS: scan and relocate all classes referenced by _klasses[].
void vmClasses::metaspace_pointers_do(MetaspaceClosure* it) {
for (auto id : EnumRange<vmClassID>{}) {
it->push(klass_addr_at(id));
}
}

bool vmClasses::is_loaded(InstanceKlass* klass) {
return klass != nullptr && klass->is_loaded();
}
Expand Down Expand Up @@ -205,8 +197,6 @@ void vmClasses::resolve_all(TRAPS) {
_box_klasses[T_SHORT] = vmClasses::Short_klass();
_box_klasses[T_INT] = vmClasses::Integer_klass();
_box_klasses[T_LONG] = vmClasses::Long_klass();
//_box_klasses[T_OBJECT] = vmClasses::object_klass();
//_box_klasses[T_ARRAY] = vmClasses::object_klass();

#ifdef ASSERT
if (CDSConfig::is_using_archive()) {
Expand Down
4 changes: 1 addition & 3 deletions src/hotspot/share/classfile/vmClasses.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -32,7 +32,6 @@

class ClassLoaderData;
class InstanceKlass;
class MetaspaceClosure;

class vmClasses : AllStatic {
friend class VMStructs;
Expand Down Expand Up @@ -95,7 +94,6 @@ class vmClasses : AllStatic {
return &_klasses[as_int(id)];
}

static void metaspace_pointers_do(MetaspaceClosure* it);
static void resolve_all(TRAPS);

static BasicType box_klass_type(Klass* k); // inverse of box_klass
Expand Down

0 comments on commit 8f75619

Please sign in to comment.