< prev index next >

src/hotspot/share/cds/regeneratedClasses.cpp

Print this page
@@ -72,10 +72,29 @@
    } else {
      return _renegerated_objs->get(orig_obj) != nullptr;
    }
  }
  
+ address RegeneratedClasses::get_regenerated_object(address orig_obj) {
+   assert(_renegerated_objs != nullptr, "must be");
+   address* p =_renegerated_objs->get(orig_obj);
+   assert(p != nullptr, "must be");
+   return *p;
+ }
+ 
+ bool RegeneratedClasses::is_a_regenerated_object(address obj) {
+ #if 0
+   if (_original_objs == nullptr) {
+     return false;
+   } else {
+     return _original_objs->get(obj) != nullptr;
+   }
+ #else
+   return false; // FIXME-MERGE
+ #endif
+ }
+ 
  void RegeneratedClasses::record_regenerated_objects() {
    assert_locked_or_safepoint(DumpTimeTable_lock);
    if (_renegerated_objs != nullptr) {
      auto doit = [&] (address orig_obj, address regen_obj) {
        ArchiveBuilder::current()->record_regenerated_object(orig_obj, regen_obj);
< prev index next >