-
Notifications
You must be signed in to change notification settings - Fork 712
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
JEP 359 part1: attribute & isRecord support #8061
Conversation
113a41f
to
2c9ac99
Compare
525de5a
to
7000a4c
Compare
New year copyright update. |
7000a4c
to
012a06c
Compare
012a06c
to
005ec7c
Compare
runtime/bcutil/cfreader.c
Outdated
@@ -765,6 +766,42 @@ readAttributes(J9CfrClassFile * classfile, J9CfrAttribute *** pAttributes, U_32 | |||
memcpy (stackMap->entries, index, stackMap->mapLength); | |||
index += stackMap->mapLength; | |||
|
|||
break; | |||
case CFR_ATTRIBUTE_Record: | |||
/* There should be no more than one record attribute in a ClassFile. */ |
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.
And one record attribute in a ClassFile.
Is there a spec reference for this?
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.
Yes. 4.7.30
There may be at most one Record attribute in the attributes table of a ClassFile structure.
I will reference the section in my comment.
test/functional/Java14andUp/src/org/openj9/test/java/lang/Test_Class.java
Outdated
Show resolved
Hide resolved
runtime/oti/cfr.h
Outdated
@@ -902,6 +919,7 @@ typedef struct J9CfrClassFile { | |||
#define CFR_DECODE_J9_MULTIANEWARRAY 23 | |||
#define CFR_DECODE_J9_METHODTYPEREF 24 | |||
#define CFR_J9FLAG_HAS_JSR 1 | |||
#define CFR_J9FLAG_IS_RECORD 2 |
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.
Can you point at why cfdump needs this? It would be cleaner to add this change (and related code) to the PR that requires it.
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.
I can move this to the cfdumper pr.
I use this in cfdumper as a way to identify a record class when displaying a J9CfrClassFile and not a loaded rom class.
dcdb2ae
to
6be96a7
Compare
06a9639
to
11874c3
Compare
68f3ad6
to
916ba27
Compare
Jenkins test sanity plinux jdk14,jdk11 |
@theresa-m Please comment on the state of the builds before you address the missing newline. Assuming they pass now, I'd like to commit without running a new build for just the newline change but need to have the results recorded before any new commits are pushed. |
The builds passed https://ci.eclipse.org/openj9/job/PullRequest-OpenJ9/2624/ |
Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
a96c62a
to
36e92bf
Compare
I've added the newline change to this commit now. |
Part of: #7945
Signed-off-by: Theresa Mammarella Theresa.T.Mammarella@ibm.com