1.1 --- a/src/share/vm/oops/instanceRefKlass.hpp Thu Sep 06 07:28:30 2012 -0700 1.2 +++ b/src/share/vm/oops/instanceRefKlass.hpp Fri Sep 07 12:04:16 2012 -0400 1.3 @@ -27,7 +27,7 @@ 1.4 1.5 #include "oops/instanceKlass.hpp" 1.6 1.7 -// An instanceRefKlass is a specialized InstanceKlass for Java 1.8 +// An InstanceRefKlass is a specialized InstanceKlass for Java 1.9 // classes that are subclasses of java/lang/ref/Reference. 1.10 // 1.11 // These classes are used to implement soft/weak/final/phantom 1.12 @@ -44,22 +44,22 @@ 1.13 // and the pending list lock object in the same class is notified. 1.14 1.15 1.16 -class instanceRefKlass: public InstanceKlass { 1.17 +class InstanceRefKlass: public InstanceKlass { 1.18 friend class InstanceKlass; 1.19 1.20 // Constructor 1.21 - instanceRefKlass(int vtable_len, int itable_len, int static_field_size, int nonstatic_oop_map_size, ReferenceType rt, AccessFlags access_flags, bool is_anonymous) 1.22 + InstanceRefKlass(int vtable_len, int itable_len, int static_field_size, int nonstatic_oop_map_size, ReferenceType rt, AccessFlags access_flags, bool is_anonymous) 1.23 : InstanceKlass(vtable_len, itable_len, static_field_size, nonstatic_oop_map_size, rt, access_flags, is_anonymous) {} 1.24 1.25 public: 1.26 - instanceRefKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); } 1.27 + InstanceRefKlass() { assert(DumpSharedSpaces || UseSharedSpaces, "only for CDS"); } 1.28 // Type testing 1.29 bool oop_is_instanceRef() const { return true; } 1.30 1.31 // Casting from Klass* 1.32 - static instanceRefKlass* cast(Klass* k) { 1.33 - assert(k->oop_is_instanceRef(), "cast to instanceRefKlass"); 1.34 - return (instanceRefKlass*) k; 1.35 + static InstanceRefKlass* cast(Klass* k) { 1.36 + assert(k->oop_is_instanceRef(), "cast to InstanceRefKlass"); 1.37 + return (InstanceRefKlass*) k; 1.38 } 1.39 1.40 // Garbage collection