mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8351165: Remove unused includes from vmStructs
Reviewed-by: kbarrett
This commit is contained in:
parent
c3b48196af
commit
11a37c829c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2025, 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
|
||||
@ -241,7 +241,6 @@ template <
|
||||
bool (*EQUALS)(V value, K key, int len)
|
||||
>
|
||||
class CompactHashtable : public SimpleCompactHashtable {
|
||||
friend class VMStructs;
|
||||
|
||||
V decode(u4 offset) const {
|
||||
return DECODE(_base_address, offset);
|
||||
|
||||
@ -40,7 +40,6 @@ class SerializeClosure;
|
||||
class StringTableConfig;
|
||||
|
||||
class StringTable : AllStatic {
|
||||
friend class VMStructs;
|
||||
friend class StringTableConfig;
|
||||
|
||||
static volatile bool _has_work;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2025, 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
|
||||
@ -47,7 +47,6 @@ class constantPoolHandle;
|
||||
class SymbolClosure;
|
||||
|
||||
class SymbolTable : public AllStatic {
|
||||
friend class VMStructs;
|
||||
friend class Symbol;
|
||||
friend class ClassFileParser;
|
||||
friend class SymbolTableConfig;
|
||||
|
||||
@ -79,7 +79,6 @@ class SystemDictionary : AllStatic {
|
||||
friend class AOTLinkedClassBulkLoader;
|
||||
friend class BootstrapInfo;
|
||||
friend class vmClasses;
|
||||
friend class VMStructs;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
@ -129,7 +129,6 @@ private:
|
||||
protected:
|
||||
friend class HandleMark;
|
||||
friend class NoHandleMark;
|
||||
friend class VMStructs;
|
||||
|
||||
Chunk* _first; // First chunk
|
||||
Chunk* _chunk; // current chunk
|
||||
|
||||
@ -43,8 +43,6 @@
|
||||
//------------------------------ResourceArea-----------------------------------
|
||||
// A ResourceArea is an Arena that supports safe usage of ResourceMark.
|
||||
class ResourceArea: public Arena {
|
||||
friend class VMStructs;
|
||||
|
||||
#ifdef ASSERT
|
||||
int _nesting; // current # of nested ResourceMarks
|
||||
void verify_has_resource_mark();
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2025, 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
|
||||
@ -54,8 +54,6 @@ enum class SharedStubId :int {
|
||||
#undef SHARED_STUB_ID_ENUM_DECLARE
|
||||
|
||||
class SharedRuntime: AllStatic {
|
||||
friend class VMStructs;
|
||||
|
||||
private:
|
||||
// Declare shared stub fields
|
||||
#define SHARED_STUB_FIELD_DECLARE(name, type) \
|
||||
|
||||
@ -23,18 +23,9 @@
|
||||
*/
|
||||
|
||||
#include "cds/filemap.hpp"
|
||||
#include "ci/ciField.hpp"
|
||||
#include "ci/ciInstance.hpp"
|
||||
#include "ci/ciMethodData.hpp"
|
||||
#include "ci/ciObjArrayKlass.hpp"
|
||||
#include "ci/ciSymbol.hpp"
|
||||
#include "classfile/classLoaderDataGraph.hpp"
|
||||
#include "classfile/dictionary.hpp"
|
||||
#include "classfile/javaClasses.hpp"
|
||||
#include "classfile/javaThreadStatus.hpp"
|
||||
#include "classfile/stringTable.hpp"
|
||||
#include "classfile/symbolTable.hpp"
|
||||
#include "classfile/systemDictionary.hpp"
|
||||
#include "classfile/vmClasses.hpp"
|
||||
#include "classfile/vmSymbols.hpp"
|
||||
#include "code/codeBlob.hpp"
|
||||
@ -103,10 +94,8 @@
|
||||
#include "runtime/osThread.hpp"
|
||||
#include "runtime/perfMemory.hpp"
|
||||
#include "runtime/serviceThread.hpp"
|
||||
#include "runtime/sharedRuntime.hpp"
|
||||
#include "runtime/stubRoutines.hpp"
|
||||
#include "runtime/synchronizer.hpp"
|
||||
#include "runtime/threadSMR.hpp"
|
||||
#include "runtime/vframeArray.hpp"
|
||||
#include "runtime/vmStructs.hpp"
|
||||
#include "runtime/vm_version.hpp"
|
||||
@ -411,7 +400,7 @@
|
||||
volatile_static_field(PerfMemory, _initialized, int) \
|
||||
\
|
||||
/********************/ \
|
||||
/* SystemDictionary */ \
|
||||
/* VM Classes */ \
|
||||
/********************/ \
|
||||
\
|
||||
static_field(vmClasses, VM_CLASS_AT(Object_klass), InstanceKlass*) \
|
||||
@ -635,7 +624,6 @@
|
||||
nonstatic_field(JavaThread, _monitor_owner_id, int64_t) \
|
||||
volatile_nonstatic_field(JavaThread, _terminated, JavaThread::TerminatedTypes) \
|
||||
nonstatic_field(Thread, _osthread, OSThread*) \
|
||||
nonstatic_field(Thread, _resource_area, ResourceArea*) \
|
||||
\
|
||||
/************/ \
|
||||
/* OSThread */ \
|
||||
@ -1009,17 +997,14 @@
|
||||
declare_type(PerfData, CHeapObj<mtInternal>) \
|
||||
\
|
||||
/********************/ \
|
||||
/* SystemDictionary */ \
|
||||
/* VM Classes */ \
|
||||
/********************/ \
|
||||
\
|
||||
declare_toplevel_type(SystemDictionary) \
|
||||
declare_toplevel_type(vmClasses) \
|
||||
declare_toplevel_type(vmSymbols) \
|
||||
\
|
||||
declare_toplevel_type(GrowableArrayBase) \
|
||||
declare_toplevel_type(GrowableArray<int>) \
|
||||
declare_toplevel_type(Arena) \
|
||||
declare_type(ResourceArea, Arena) \
|
||||
\
|
||||
/***********************************************************/ \
|
||||
/* Thread hierarchy (needed for run-time type information) */ \
|
||||
@ -1090,8 +1075,6 @@
|
||||
/* CodeBlob hierarchy (needed for run-time type information) */ \
|
||||
/*************************************************************/ \
|
||||
\
|
||||
declare_toplevel_type(SharedRuntime) \
|
||||
\
|
||||
declare_toplevel_type(CodeBlob) \
|
||||
declare_type(RuntimeBlob, CodeBlob) \
|
||||
declare_type(BufferBlob, RuntimeBlob) \
|
||||
@ -1163,12 +1146,6 @@
|
||||
declare_toplevel_type(BasicLock) \
|
||||
declare_toplevel_type(BasicObjectLock) \
|
||||
\
|
||||
/*********************/ \
|
||||
/* Adapter Blob Entries */ \
|
||||
/*********************/ \
|
||||
declare_toplevel_type(AdapterHandlerEntry) \
|
||||
declare_toplevel_type(AdapterHandlerEntry*) \
|
||||
\
|
||||
/********************/ \
|
||||
/* -XX flags */ \
|
||||
/********************/ \
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2025, 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
|
||||
@ -49,7 +49,7 @@ public class ClhsdbPrintStatics {
|
||||
System.out.println("Started LingeredApp with pid " + theApp.getPid());
|
||||
|
||||
List<String> cmds = List.of(
|
||||
"printstatics", "printstatics SystemDictionary",
|
||||
"printstatics",
|
||||
"printstatics Threads", "printstatics Universe",
|
||||
"printstatics JvmtiExport");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user