mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8285364: Remove REF_ enum for java.lang.ref.Reference
Co-authored-by: Stefan Karlsson <stefank@openjdk.org> Reviewed-by: kbarrett, coleenp, stefank
This commit is contained in:
parent
167ce4dae2
commit
2961b7eede
14 changed files with 84 additions and 45 deletions
|
@ -136,7 +136,7 @@ class InstanceKlass: public Klass {
|
|||
static const KlassKind Kind = InstanceKlassKind;
|
||||
|
||||
protected:
|
||||
InstanceKlass(const ClassFileParser& parser, KlassKind kind = Kind);
|
||||
InstanceKlass(const ClassFileParser& parser, KlassKind kind = Kind, ReferenceType reference_type = REF_NONE);
|
||||
|
||||
public:
|
||||
InstanceKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); }
|
||||
|
@ -592,10 +592,6 @@ public:
|
|||
|
||||
// reference type
|
||||
ReferenceType reference_type() const { return (ReferenceType)_reference_type; }
|
||||
void set_reference_type(ReferenceType t) {
|
||||
assert(t == (u1)t, "overflow");
|
||||
_reference_type = (u1)t;
|
||||
}
|
||||
|
||||
// this class cp index
|
||||
u2 this_class_index() const { return _this_class_index; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue