-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up ConstantPoolClassSlotIterator class #20492
base: master
Are you sure you want to change the base?
Conversation
Use consistent data types and code formatting Signed-off-by: lhu <[email protected]>
@@ -47,11 +47,11 @@ GC_ConstantPoolClassSlotIterator::nextSlot() | |||
_cpDescriptionIndex = J9_CP_DESCRIPTIONS_PER_U32; | |||
} | |||
|
|||
U_32 slotType = _cpDescription & J9_CP_DESCRIPTION_MASK; | |||
slotType = _cpDescription & J9_CP_DESCRIPTION_MASK; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed declaration
_cpEntryCount(clazz->romClass->ramConstantPoolCount) | ||
GC_ConstantPoolClassSlotIterator(J9Class *clazz) | ||
: _cpEntry((J9Object **)J9_CP_FROM_CLASS(clazz)) | ||
, _cpEntryCount(clazz->romClass->ramConstantPoolCount) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should preserve indentation
_cpEntryCount(clazz->romClass->ramConstantPoolCount) | ||
GC_ConstantPoolClassSlotIterator(J9Class *clazz) | ||
: _cpEntry((J9Object **)J9_CP_FROM_CLASS(clazz)) | ||
, _cpEntryCount(clazz->romClass->ramConstantPoolCount) | ||
{ | ||
_cpEntryTotal = _cpEntryCount; | ||
if(_cpEntryCount) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space in 'if('
Use consistent data types and code formatting