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

Add new method Class.isIdentity() #16041

Merged
merged 2 commits into from
Oct 7, 2022
Merged

Conversation

hangshao0
Copy link
Contributor

@hangshao0 hangshao0 commented Oct 4, 2022

  1. Add implementation of Class.isIdentity()
  2. Update tests

Closes #16027 #16031

Signed-off-by: Hang Shao hangshao@ca.ibm.com

1. Add implementation of Class.isIdentity()
2. Update tests

Closes eclipse-openj9#16027

Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
@hangshao0 hangshao0 requested a review from tajila October 4, 2022 18:01
@hangshao0 hangshao0 added comp:vm project:valhalla Used to track Project Valhalla related work labels Oct 4, 2022
@hangshao0
Copy link
Contributor Author

For potential PR builds, the functional Valhalla tests won't compile at this moment. The compilation errors should be resolved by #16040.

Closes #eclipse-openj9#16031

Signed-off-by: Hang Shao <hangshao@ca.ibm.com>
@hangshao0
Copy link
Contributor Author

I've closed #16040 and moved all the changes here.

@@ -127,6 +127,10 @@ initializeArrayROMClass(J9ROMArrayClass *romClass, J9UTF8 *className, U_32 array
NNSRP_SET(romClass->className, className);
NNSRP_SET(romClass->superclassName, &arrayROMClasses.objectClassName);
romClass->modifiers = J9AccFinal | J9AccPublic | J9AccClassArray | J9AccAbstract;
#if defined(J9VM_OPT_VALHALLA_VALUE_TYPES)
/* Arrays are always identity classes. */
romClass->modifiers |= J9AccClassHasIdentity;
Copy link
Contributor

Choose a reason for hiding this comment

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

do we add the flag for non-Arrays as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, for non-array classes it is set here:

if (_isIdentityFlagNeeded) {
_classFile->accessFlags |= CFR_ACC_IDENTITY;
}

@tajila
Copy link
Contributor

tajila commented Oct 6, 2022

Jenkins test sanity,extended xlinuxval jdknext

@tajila
Copy link
Contributor

tajila commented Oct 6, 2022

Jenkins test sanity win jdk8

@tajila
Copy link
Contributor

tajila commented Oct 6, 2022

Jenkins test sanity plinuxvalst jdknext

@hangshao0
Copy link
Contributor Author

The PR build failure is due to #16028.

@tajila tajila merged commit 16ae186 into eclipse-openj9:master Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:test comp:vm project:valhalla Used to track Project Valhalla related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

valhalla error: cannot find symbol method isIdentity()
2 participants