@@ -174,7 +174,7 @@ void Devirtualizer::do_cld(OopClosureType* closure, ClassLoaderData* cld) {
174
174
// It allows for a single call to do a multi-dispatch to an optimized version
175
175
// of oop_oop_iterate that statically know all these types:
176
176
// - OopClosureType : static type give at call site
177
- // - Klass* : dynamic to static type through Klass::id () -> table index
177
+ // - Klass* : dynamic to static type through Klass::kind () -> table index
178
178
// - UseCompressedOops : dynamic to static value determined once
179
179
//
180
180
// when users call obj->oop_iterate(&cl).
@@ -190,7 +190,7 @@ void Devirtualizer::do_cld(OopClosureType* closure, ClassLoaderData* cld) {
190
190
// used when calling do_oop.
191
191
//
192
192
// Klass* :
193
- // A table mapping from *Klass::ID to function is setup. This happens once
193
+ // A table mapping from *Klass::Kind to function is setup. This happens once
194
194
// when the program starts, when the static _table instance is initialized for
195
195
// the OopOopIterateDispatch specialized with the OopClosureType.
196
196
//
@@ -223,7 +223,7 @@ class OopOopIterateDispatch : public AllStatic {
223
223
224
224
template <typename KlassType>
225
225
void set_init_function () {
226
- _function[KlassType::ID ] = &init<KlassType>;
226
+ _function[KlassType::Kind ] = &init<KlassType>;
227
227
}
228
228
229
229
template <typename KlassType>
@@ -232,20 +232,20 @@ class OopOopIterateDispatch : public AllStatic {
232
232
// when functions pointers are updated.
233
233
STATIC_ASSERT (sizeof (_function[0 ]) == sizeof (void *));
234
234
if (UseCompressedOops) {
235
- _function[KlassType::ID ] = &oop_oop_iterate<KlassType, narrowOop>;
235
+ _function[KlassType::Kind ] = &oop_oop_iterate<KlassType, narrowOop>;
236
236
} else {
237
- _function[KlassType::ID ] = &oop_oop_iterate<KlassType, oop>;
237
+ _function[KlassType::Kind ] = &oop_oop_iterate<KlassType, oop>;
238
238
}
239
239
}
240
240
241
241
template <typename KlassType>
242
242
void set_resolve_function_and_execute (OopClosureType* cl, oop obj, Klass* k) {
243
243
set_resolve_function<KlassType>();
244
- _function[KlassType::ID ](cl, obj, k);
244
+ _function[KlassType::Kind ](cl, obj, k);
245
245
}
246
246
247
247
public:
248
- FunctionType _function[KLASS_ID_COUNT ];
248
+ FunctionType _function[KLASS_KIND_COUNT ];
249
249
250
250
Table (){
251
251
set_init_function<InstanceKlass>();
@@ -261,7 +261,7 @@ class OopOopIterateDispatch : public AllStatic {
261
261
public:
262
262
263
263
static FunctionType function (Klass* klass) {
264
- return _table._function [klass->id ()];
264
+ return _table._function [klass->kind ()];
265
265
}
266
266
};
267
267
@@ -288,26 +288,26 @@ class OopOopIterateBoundedDispatch {
288
288
289
289
template <typename KlassType>
290
290
void set_init_function () {
291
- _function[KlassType::ID ] = &init<KlassType>;
291
+ _function[KlassType::Kind ] = &init<KlassType>;
292
292
}
293
293
294
294
template <typename KlassType>
295
295
void set_resolve_function () {
296
296
if (UseCompressedOops) {
297
- _function[KlassType::ID ] = &oop_oop_iterate_bounded<KlassType, narrowOop>;
297
+ _function[KlassType::Kind ] = &oop_oop_iterate_bounded<KlassType, narrowOop>;
298
298
} else {
299
- _function[KlassType::ID ] = &oop_oop_iterate_bounded<KlassType, oop>;
299
+ _function[KlassType::Kind ] = &oop_oop_iterate_bounded<KlassType, oop>;
300
300
}
301
301
}
302
302
303
303
template <typename KlassType>
304
304
void set_resolve_function_and_execute (OopClosureType* cl, oop obj, Klass* k, MemRegion mr) {
305
305
set_resolve_function<KlassType>();
306
- _function[KlassType::ID ](cl, obj, k, mr);
306
+ _function[KlassType::Kind ](cl, obj, k, mr);
307
307
}
308
308
309
309
public:
310
- FunctionType _function[KLASS_ID_COUNT ];
310
+ FunctionType _function[KLASS_KIND_COUNT ];
311
311
312
312
Table (){
313
313
set_init_function<InstanceKlass>();
@@ -323,7 +323,7 @@ class OopOopIterateBoundedDispatch {
323
323
public:
324
324
325
325
static FunctionType function (Klass* klass) {
326
- return _table._function [klass->id ()];
326
+ return _table._function [klass->kind ()];
327
327
}
328
328
};
329
329
@@ -350,26 +350,26 @@ class OopOopIterateBackwardsDispatch {
350
350
351
351
template <typename KlassType>
352
352
void set_init_function () {
353
- _function[KlassType::ID ] = &init<KlassType>;
353
+ _function[KlassType::Kind ] = &init<KlassType>;
354
354
}
355
355
356
356
template <typename KlassType>
357
357
void set_resolve_function () {
358
358
if (UseCompressedOops) {
359
- _function[KlassType::ID ] = &oop_oop_iterate_backwards<KlassType, narrowOop>;
359
+ _function[KlassType::Kind ] = &oop_oop_iterate_backwards<KlassType, narrowOop>;
360
360
} else {
361
- _function[KlassType::ID ] = &oop_oop_iterate_backwards<KlassType, oop>;
361
+ _function[KlassType::Kind ] = &oop_oop_iterate_backwards<KlassType, oop>;
362
362
}
363
363
}
364
364
365
365
template <typename KlassType>
366
366
void set_resolve_function_and_execute (OopClosureType* cl, oop obj, Klass* k) {
367
367
set_resolve_function<KlassType>();
368
- _function[KlassType::ID ](cl, obj, k);
368
+ _function[KlassType::Kind ](cl, obj, k);
369
369
}
370
370
371
371
public:
372
- FunctionType _function[KLASS_ID_COUNT ];
372
+ FunctionType _function[KLASS_KIND_COUNT ];
373
373
374
374
Table (){
375
375
set_init_function<InstanceKlass>();
@@ -385,7 +385,7 @@ class OopOopIterateBackwardsDispatch {
385
385
public:
386
386
387
387
static FunctionType function (Klass* klass) {
388
- return _table._function [klass->id ()];
388
+ return _table._function [klass->kind ()];
389
389
}
390
390
};
391
391
0 commit comments