@@ -1223,45 +1223,6 @@ bool SystemDictionaryShared::is_supported_invokedynamic(BootstrapInfo* bsi) {
1223
1223
return false ;
1224
1224
}
1225
1225
1226
- class EstimateSizeForArchive : StackObj {
1227
- size_t _shared_class_info_size;
1228
- int _num_builtin_klasses;
1229
- int _num_unregistered_klasses;
1230
-
1231
- public:
1232
- EstimateSizeForArchive () {
1233
- _shared_class_info_size = 0 ;
1234
- _num_builtin_klasses = 0 ;
1235
- _num_unregistered_klasses = 0 ;
1236
- }
1237
-
1238
- void do_entry (InstanceKlass* k, DumpTimeClassInfo& info) {
1239
- if (!info.is_excluded ()) {
1240
- size_t byte_size = info.runtime_info_bytesize ();
1241
- _shared_class_info_size += align_up (byte_size, SharedSpaceObjectAlignment);
1242
- }
1243
- }
1244
-
1245
- size_t total () {
1246
- return _shared_class_info_size;
1247
- }
1248
- };
1249
-
1250
- size_t SystemDictionaryShared::estimate_size_for_archive () {
1251
- EstimateSizeForArchive est;
1252
- _dumptime_table->iterate_all_live_classes (&est);
1253
- size_t total_size = est.total () +
1254
- CompactHashtableWriter::estimate_size (_dumptime_table->count_of (true )) +
1255
- CompactHashtableWriter::estimate_size (_dumptime_table->count_of (false ));
1256
-
1257
- size_t bytesize = align_up (sizeof (RunTimeLambdaProxyClassInfo), SharedSpaceObjectAlignment);
1258
- total_size +=
1259
- (bytesize * _dumptime_lambda_proxy_class_dictionary->_count ) +
1260
- CompactHashtableWriter::estimate_size (_dumptime_lambda_proxy_class_dictionary->_count );
1261
-
1262
- return total_size;
1263
- }
1264
-
1265
1226
unsigned int SystemDictionaryShared::hash_for_shared_dictionary (address ptr) {
1266
1227
if (ArchiveBuilder::is_active ()) {
1267
1228
uintx offset = ArchiveBuilder::current ()->any_to_offset (ptr);
0 commit comments