mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
7195833: NPG: Rename instanceClassLoaderKlass, instanceRefKlass and instanceMirrorKlass
Simple renaming to be consistent with instanceKlass->InstanceKlass renaming Reviewed-by: stefank, jmasa
This commit is contained in:
parent
cd5df1082a
commit
12b9a4edbb
27 changed files with 111 additions and 111 deletions
|
@ -45,12 +45,12 @@
|
|||
#endif
|
||||
|
||||
template <class T>
|
||||
void specialized_oop_follow_contents(instanceRefKlass* ref, oop obj) {
|
||||
void specialized_oop_follow_contents(InstanceRefKlass* ref, oop obj) {
|
||||
T* referent_addr = (T*)java_lang_ref_Reference::referent_addr(obj);
|
||||
T heap_oop = oopDesc::load_heap_oop(referent_addr);
|
||||
debug_only(
|
||||
if(TraceReferenceGC && PrintGCDetails) {
|
||||
gclog_or_tty->print_cr("instanceRefKlass::oop_follow_contents " INTPTR_FORMAT, obj);
|
||||
gclog_or_tty->print_cr("InstanceRefKlass::oop_follow_contents " INTPTR_FORMAT, obj);
|
||||
}
|
||||
)
|
||||
if (!oopDesc::is_null(heap_oop)) {
|
||||
|
@ -112,7 +112,7 @@ void specialized_oop_follow_contents(instanceRefKlass* ref, oop obj) {
|
|||
ref->InstanceKlass::oop_follow_contents(obj);
|
||||
}
|
||||
|
||||
void instanceRefKlass::oop_follow_contents(oop obj) {
|
||||
void InstanceRefKlass::oop_follow_contents(oop obj) {
|
||||
if (UseCompressedOops) {
|
||||
specialized_oop_follow_contents<narrowOop>(this, obj);
|
||||
} else {
|
||||
|
@ -122,14 +122,14 @@ void instanceRefKlass::oop_follow_contents(oop obj) {
|
|||
|
||||
#ifndef SERIALGC
|
||||
template <class T>
|
||||
void specialized_oop_follow_contents(instanceRefKlass* ref,
|
||||
void specialized_oop_follow_contents(InstanceRefKlass* ref,
|
||||
ParCompactionManager* cm,
|
||||
oop obj) {
|
||||
T* referent_addr = (T*)java_lang_ref_Reference::referent_addr(obj);
|
||||
T heap_oop = oopDesc::load_heap_oop(referent_addr);
|
||||
debug_only(
|
||||
if(TraceReferenceGC && PrintGCDetails) {
|
||||
gclog_or_tty->print_cr("instanceRefKlass::oop_follow_contents " INTPTR_FORMAT, obj);
|
||||
gclog_or_tty->print_cr("InstanceRefKlass::oop_follow_contents " INTPTR_FORMAT, obj);
|
||||
}
|
||||
)
|
||||
if (!oopDesc::is_null(heap_oop)) {
|
||||
|
@ -186,7 +186,7 @@ void specialized_oop_follow_contents(instanceRefKlass* ref,
|
|||
ref->InstanceKlass::oop_follow_contents(cm, obj);
|
||||
}
|
||||
|
||||
void instanceRefKlass::oop_follow_contents(ParCompactionManager* cm,
|
||||
void InstanceRefKlass::oop_follow_contents(ParCompactionManager* cm,
|
||||
oop obj) {
|
||||
if (UseCompressedOops) {
|
||||
specialized_oop_follow_contents<narrowOop>(this, cm, obj);
|
||||
|
@ -218,18 +218,18 @@ template <class T> void trace_reference_gc(const char *s, oop obj,
|
|||
}
|
||||
#endif
|
||||
|
||||
template <class T> void specialized_oop_adjust_pointers(instanceRefKlass *ref, oop obj) {
|
||||
template <class T> void specialized_oop_adjust_pointers(InstanceRefKlass *ref, oop obj) {
|
||||
T* referent_addr = (T*)java_lang_ref_Reference::referent_addr(obj);
|
||||
MarkSweep::adjust_pointer(referent_addr);
|
||||
T* next_addr = (T*)java_lang_ref_Reference::next_addr(obj);
|
||||
MarkSweep::adjust_pointer(next_addr);
|
||||
T* discovered_addr = (T*)java_lang_ref_Reference::discovered_addr(obj);
|
||||
MarkSweep::adjust_pointer(discovered_addr);
|
||||
debug_only(trace_reference_gc("instanceRefKlass::oop_adjust_pointers", obj,
|
||||
debug_only(trace_reference_gc("InstanceRefKlass::oop_adjust_pointers", obj,
|
||||
referent_addr, next_addr, discovered_addr);)
|
||||
}
|
||||
|
||||
int instanceRefKlass::oop_adjust_pointers(oop obj) {
|
||||
int InstanceRefKlass::oop_adjust_pointers(oop obj) {
|
||||
int size = size_helper();
|
||||
InstanceKlass::oop_adjust_pointers(obj);
|
||||
|
||||
|
@ -298,12 +298,12 @@ int instanceRefKlass::oop_adjust_pointers(oop obj) {
|
|||
|
||||
template <class T> bool contains(T *t) { return true; }
|
||||
|
||||
// Macro to define instanceRefKlass::oop_oop_iterate for virtual/nonvirtual for
|
||||
// Macro to define InstanceRefKlass::oop_oop_iterate for virtual/nonvirtual for
|
||||
// all closures. Macros calling macros above for each oop size.
|
||||
|
||||
#define InstanceRefKlass_OOP_OOP_ITERATE_DEFN(OopClosureType, nv_suffix) \
|
||||
\
|
||||
int instanceRefKlass:: \
|
||||
int InstanceRefKlass:: \
|
||||
oop_oop_iterate##nv_suffix(oop obj, OopClosureType* closure) { \
|
||||
/* Get size before changing pointers */ \
|
||||
SpecializationStats::record_iterate_call##nv_suffix(SpecializationStats::irk);\
|
||||
|
@ -320,7 +320,7 @@ oop_oop_iterate##nv_suffix(oop obj, OopClosureType* closure) {
|
|||
#ifndef SERIALGC
|
||||
#define InstanceRefKlass_OOP_OOP_ITERATE_BACKWARDS_DEFN(OopClosureType, nv_suffix) \
|
||||
\
|
||||
int instanceRefKlass:: \
|
||||
int InstanceRefKlass:: \
|
||||
oop_oop_iterate_backwards##nv_suffix(oop obj, OopClosureType* closure) { \
|
||||
/* Get size before changing pointers */ \
|
||||
SpecializationStats::record_iterate_call##nv_suffix(SpecializationStats::irk);\
|
||||
|
@ -338,7 +338,7 @@ oop_oop_iterate_backwards##nv_suffix(oop obj, OopClosureType* closure) {
|
|||
|
||||
#define InstanceRefKlass_OOP_OOP_ITERATE_DEFN_m(OopClosureType, nv_suffix) \
|
||||
\
|
||||
int instanceRefKlass:: \
|
||||
int InstanceRefKlass:: \
|
||||
oop_oop_iterate##nv_suffix##_m(oop obj, \
|
||||
OopClosureType* closure, \
|
||||
MemRegion mr) { \
|
||||
|
@ -363,7 +363,7 @@ ALL_OOP_OOP_ITERATE_CLOSURES_2(InstanceRefKlass_OOP_OOP_ITERATE_DEFN_m)
|
|||
|
||||
#ifndef SERIALGC
|
||||
template <class T>
|
||||
void specialized_oop_push_contents(instanceRefKlass *ref,
|
||||
void specialized_oop_push_contents(InstanceRefKlass *ref,
|
||||
PSPromotionManager* pm, oop obj) {
|
||||
T* referent_addr = (T*)java_lang_ref_Reference::referent_addr(obj);
|
||||
if (PSScavenge::should_scavenge(referent_addr)) {
|
||||
|
@ -414,7 +414,7 @@ void specialized_oop_push_contents(instanceRefKlass *ref,
|
|||
ref->InstanceKlass::oop_push_contents(pm, obj);
|
||||
}
|
||||
|
||||
void instanceRefKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
|
||||
void InstanceRefKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
|
||||
if (UseCompressedOops) {
|
||||
specialized_oop_push_contents<narrowOop>(this, pm, obj);
|
||||
} else {
|
||||
|
@ -423,7 +423,7 @@ void instanceRefKlass::oop_push_contents(PSPromotionManager* pm, oop obj) {
|
|||
}
|
||||
|
||||
template <class T>
|
||||
void specialized_oop_update_pointers(instanceRefKlass *ref,
|
||||
void specialized_oop_update_pointers(InstanceRefKlass *ref,
|
||||
ParCompactionManager* cm, oop obj) {
|
||||
T* referent_addr = (T*)java_lang_ref_Reference::referent_addr(obj);
|
||||
PSParallelCompact::adjust_pointer(referent_addr);
|
||||
|
@ -431,11 +431,11 @@ void specialized_oop_update_pointers(instanceRefKlass *ref,
|
|||
PSParallelCompact::adjust_pointer(next_addr);
|
||||
T* discovered_addr = (T*)java_lang_ref_Reference::discovered_addr(obj);
|
||||
PSParallelCompact::adjust_pointer(discovered_addr);
|
||||
debug_only(trace_reference_gc("instanceRefKlass::oop_update_ptrs", obj,
|
||||
debug_only(trace_reference_gc("InstanceRefKlass::oop_update_ptrs", obj,
|
||||
referent_addr, next_addr, discovered_addr);)
|
||||
}
|
||||
|
||||
int instanceRefKlass::oop_update_pointers(ParCompactionManager* cm, oop obj) {
|
||||
int InstanceRefKlass::oop_update_pointers(ParCompactionManager* cm, oop obj) {
|
||||
InstanceKlass::oop_update_pointers(cm, obj);
|
||||
if (UseCompressedOops) {
|
||||
specialized_oop_update_pointers<narrowOop>(this, cm, obj);
|
||||
|
@ -446,7 +446,7 @@ int instanceRefKlass::oop_update_pointers(ParCompactionManager* cm, oop obj) {
|
|||
}
|
||||
#endif // SERIALGC
|
||||
|
||||
void instanceRefKlass::update_nonstatic_oop_maps(Klass* k) {
|
||||
void InstanceRefKlass::update_nonstatic_oop_maps(Klass* k) {
|
||||
// Clear the nonstatic oop-map entries corresponding to referent
|
||||
// and nextPending field. They are treated specially by the
|
||||
// garbage collector.
|
||||
|
@ -485,7 +485,7 @@ void instanceRefKlass::update_nonstatic_oop_maps(Klass* k) {
|
|||
|
||||
// Verification
|
||||
|
||||
void instanceRefKlass::oop_verify_on(oop obj, outputStream* st) {
|
||||
void InstanceRefKlass::oop_verify_on(oop obj, outputStream* st) {
|
||||
InstanceKlass::oop_verify_on(obj, st);
|
||||
// Verify referent field
|
||||
oop referent = java_lang_ref_Reference::referent(obj);
|
||||
|
@ -506,13 +506,13 @@ void instanceRefKlass::oop_verify_on(oop obj, outputStream* st) {
|
|||
}
|
||||
}
|
||||
|
||||
bool instanceRefKlass::owns_pending_list_lock(JavaThread* thread) {
|
||||
bool InstanceRefKlass::owns_pending_list_lock(JavaThread* thread) {
|
||||
if (java_lang_ref_Reference::pending_list_lock() == NULL) return false;
|
||||
Handle h_lock(thread, java_lang_ref_Reference::pending_list_lock());
|
||||
return ObjectSynchronizer::current_thread_holds_lock(thread, h_lock);
|
||||
}
|
||||
|
||||
void instanceRefKlass::acquire_pending_list_lock(BasicLock *pending_list_basic_lock) {
|
||||
void InstanceRefKlass::acquire_pending_list_lock(BasicLock *pending_list_basic_lock) {
|
||||
// we may enter this with pending exception set
|
||||
PRESERVE_EXCEPTION_MARK; // exceptions are never thrown, needed for TRAPS argument
|
||||
|
||||
|
@ -529,7 +529,7 @@ void instanceRefKlass::acquire_pending_list_lock(BasicLock *pending_list_basic_l
|
|||
if (HAS_PENDING_EXCEPTION) CLEAR_PENDING_EXCEPTION;
|
||||
}
|
||||
|
||||
void instanceRefKlass::release_and_notify_pending_list_lock(
|
||||
void InstanceRefKlass::release_and_notify_pending_list_lock(
|
||||
BasicLock *pending_list_basic_lock) {
|
||||
// we may enter this with pending exception set
|
||||
PRESERVE_EXCEPTION_MARK; // exceptions are never thrown, needed for TRAPS argument
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue