@@ -44,31 +44,30 @@ class GC_ConstantPoolClassSlotIterator
44
44
{
45
45
46
46
J9Object **_cpEntry;
47
- U_32 _cpEntryCount;
48
- U_32 _cpEntryTotal;
49
- U_32 *_cpDescriptionSlots;
50
- U_32 _cpDescription;
51
- UDATA _cpDescriptionIndex;
47
+ uint32_t _cpEntryCount;
48
+ uint32_t _cpEntryTotal;
49
+ uint32_t *_cpDescriptionSlots;
50
+ uint32_t _cpDescription;
51
+ uintptr_t _cpDescriptionIndex;
52
52
53
53
public:
54
- GC_ConstantPoolClassSlotIterator (J9Class *clazz) :
55
- _cpEntry ((J9Object **)J9_CP_FROM_CLASS(clazz)),
56
- _cpEntryCount (clazz->romClass->ramConstantPoolCount)
54
+ GC_ConstantPoolClassSlotIterator (J9Class *clazz)
55
+ : _cpEntry((J9Object **)J9_CP_FROM_CLASS(clazz))
56
+ , _cpEntryCount(clazz->romClass->ramConstantPoolCount)
57
57
{
58
58
_cpEntryTotal = _cpEntryCount;
59
- if ( _cpEntryCount) {
60
- _cpDescriptionSlots = SRP_PTR_GET (&clazz->romClass ->cpShapeDescription , U_32 *);
59
+ if ( 0 != _cpEntryCount) {
60
+ _cpDescriptionSlots = SRP_PTR_GET (&clazz->romClass ->cpShapeDescription , uint32_t *);
61
61
_cpDescriptionIndex = 0 ;
62
62
}
63
-
64
- };
63
+ }
65
64
66
65
/* *
67
66
* Gets the current constant pool index.
68
67
* @return zero based constant pool index of the entry returned by the last call of nextSlot.
69
68
* @return -1 if nextSlot has yet to be called.
70
69
*/
71
- MMINLINE IDATA getIndex () {
70
+ MMINLINE intptr_t getIndex () {
72
71
return _cpEntryTotal - _cpEntryCount - 1 ;
73
72
}
74
73
0 commit comments