src/hotspot/share/classfile/javaClasses.cpp
changeset 51388 0dcd27526967
parent 51371 3ab8b84e93cd
child 51417 b08c2a94cce1
equal deleted inserted replaced
51387:9fe4fc157f4e 51388:0dcd27526967
  4249 int reflect_UnsafeStaticFieldAccessorImpl::_base_offset;
  4249 int reflect_UnsafeStaticFieldAccessorImpl::_base_offset;
  4250 int jdk_internal_module_ArchivedModuleGraph::_archivedSystemModules_offset;
  4250 int jdk_internal_module_ArchivedModuleGraph::_archivedSystemModules_offset;
  4251 int jdk_internal_module_ArchivedModuleGraph::_archivedModuleFinder_offset;
  4251 int jdk_internal_module_ArchivedModuleGraph::_archivedModuleFinder_offset;
  4252 int jdk_internal_module_ArchivedModuleGraph::_archivedMainModule_offset;
  4252 int jdk_internal_module_ArchivedModuleGraph::_archivedMainModule_offset;
  4253 int jdk_internal_module_ArchivedModuleGraph::_archivedConfiguration_offset;
  4253 int jdk_internal_module_ArchivedModuleGraph::_archivedConfiguration_offset;
       
  4254 int java_lang_Integer_IntegerCache::_archivedCache_offset;
  4254 int java_lang_module_Configuration::_EMPTY_CONFIGURATION_offset;
  4255 int java_lang_module_Configuration::_EMPTY_CONFIGURATION_offset;
  4255 int java_util_ImmutableCollections_ListN::_EMPTY_LIST_offset;
  4256 int java_util_ImmutableCollections_ListN::_EMPTY_LIST_offset;
  4256 int java_util_ImmutableCollections_SetN::_EMPTY_SET_offset;
  4257 int java_util_ImmutableCollections_SetN::_EMPTY_SET_offset;
  4257 int java_util_ImmutableCollections_MapN::_EMPTY_MAP_offset;
  4258 int java_util_ImmutableCollections_MapN::_EMPTY_MAP_offset;
  4258 
  4259 
  4414 #endif
  4415 #endif
  4415 
  4416 
  4416 static int member_offset(int hardcoded_offset) {
  4417 static int member_offset(int hardcoded_offset) {
  4417   return (hardcoded_offset * heapOopSize) + instanceOopDesc::base_offset_in_bytes();
  4418   return (hardcoded_offset * heapOopSize) + instanceOopDesc::base_offset_in_bytes();
  4418 }
  4419 }
       
  4420 
       
  4421 #define INTEGERCACHE_FIELDS_DO(macro) \
       
  4422   macro(_archivedCache_offset,  k, "archivedCache",  java_lang_Integer_array_signature, true)
       
  4423 
       
  4424 void java_lang_Integer_IntegerCache::compute_offsets() {
       
  4425   InstanceKlass* k = SystemDictionary::Integer_IntegerCache_klass();
       
  4426   assert(k != NULL, "must be loaded");
       
  4427   INTEGERCACHE_FIELDS_DO(FIELD_COMPUTE_OFFSET);
       
  4428 }
       
  4429 
       
  4430 #if INCLUDE_CDS
       
  4431 void java_lang_Integer_IntegerCache::serialize(SerializeClosure* f) {
       
  4432   INTEGERCACHE_FIELDS_DO(FIELD_SERIALIZE_OFFSET);
       
  4433 }
       
  4434 #endif
  4419 
  4435 
  4420 #define ARCHIVEDMODULEGRAPH_FIELDS_DO(macro) \
  4436 #define ARCHIVEDMODULEGRAPH_FIELDS_DO(macro) \
  4421   macro(_archivedSystemModules_offset,      k, "archivedSystemModules", systemModules_signature, true); \
  4437   macro(_archivedSystemModules_offset,      k, "archivedSystemModules", systemModules_signature, true); \
  4422   macro(_archivedModuleFinder_offset,       k, "archivedModuleFinder",  moduleFinder_signature,  true); \
  4438   macro(_archivedModuleFinder_offset,       k, "archivedModuleFinder",  moduleFinder_signature,  true); \
  4423   macro(_archivedMainModule_offset,         k, "archivedMainModule",    string_signature,        true); \
  4439   macro(_archivedMainModule_offset,         k, "archivedMainModule",    string_signature,        true); \
  4551   java_lang_StackTraceElement::compute_offsets();
  4567   java_lang_StackTraceElement::compute_offsets();
  4552   java_lang_StackFrameInfo::compute_offsets();
  4568   java_lang_StackFrameInfo::compute_offsets();
  4553   java_lang_LiveStackFrameInfo::compute_offsets();
  4569   java_lang_LiveStackFrameInfo::compute_offsets();
  4554   java_util_concurrent_locks_AbstractOwnableSynchronizer::compute_offsets();
  4570   java_util_concurrent_locks_AbstractOwnableSynchronizer::compute_offsets();
  4555 
  4571 
       
  4572   java_lang_Integer_IntegerCache::compute_offsets();
  4556   java_lang_module_Configuration::compute_offsets();
  4573   java_lang_module_Configuration::compute_offsets();
  4557   java_util_ImmutableCollections_ListN::compute_offsets();
  4574   java_util_ImmutableCollections_ListN::compute_offsets();
  4558   java_util_ImmutableCollections_MapN::compute_offsets();
  4575   java_util_ImmutableCollections_MapN::compute_offsets();
  4559   java_util_ImmutableCollections_SetN::compute_offsets();
  4576   java_util_ImmutableCollections_SetN::compute_offsets();
  4560   jdk_internal_module_ArchivedModuleGraph::compute_offsets();
  4577   jdk_internal_module_ArchivedModuleGraph::compute_offsets();