Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LinHu2016
Copy link
Contributor

Use consistent data types and code formatting

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;
Copy link
Contributor

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)
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing space in 'if('

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants