8305104: Remove the old core reflection implementation

Reviewed-by: dholmes, alanb
This commit is contained in:
Mandy Chung 2023-06-13 19:41:38 +00:00
parent bfef3c3e80
commit 9bfe415f66
79 changed files with 99 additions and 6336 deletions

View file

@ -884,20 +884,6 @@ class reflect_ConstantPool {
friend class JavaClasses;
};
// Interface to jdk.internal.reflect.UnsafeStaticFieldAccessorImpl objects
class reflect_UnsafeStaticFieldAccessorImpl {
private:
static int _base_offset;
static void compute_offsets();
public:
static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
static int base_offset() { CHECK_INIT(_base_offset); }
// Debugging
friend class JavaClasses;
};
// Interface to java.lang primitive type boxing objects:
// - java.lang.Boolean
@ -1494,7 +1480,8 @@ class java_lang_ClassLoader : AllStatic {
static bool is_trusted_loader(oop loader);
// Return true if this is one of the class loaders associated with
// the generated bytecodes for reflection.
// the generated bytecodes for serialization constructor returned
// by sun.reflect.ReflectionFactory::newConstructorForSerialization
static bool is_reflection_class_loader(oop loader);
// Fix for 4474172