-
Notifications
You must be signed in to change notification settings - Fork 739
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
Reorder j9javaaccessflags.h and remove unused flags #17788
Reorder j9javaaccessflags.h and remove unused flags #17788
Conversation
45a4865
to
8b79242
Compare
8cbc6c9
to
f69d42d
Compare
9847cd3
to
1ca2932
Compare
#define J9AccStrict 0x800 | ||
#define J9AccSuper 0x20 | ||
#define J9AccSynchronized 0x20 | ||
#define J9AccSynthetic 0x1000 |
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.
If J9AccSynthetic
is removed from ROMClass->extraModifiers
, you may want to modify this comment as well:
openj9/runtime/bcutil/ROMClassBuilder.cpp
Line 1183 in f7305e7
* + AccSynthetic (matches Oracle modifier position) |
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.
This comment has not been addressed.
Also, the indentation on line 1176 is wrong.
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.
Please correct the indentation of line 1176 of ROMClassBuilder.cpp
(there should be one more space before +
).
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'd still like to see this fixed.
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.
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.
Hey sorry I missed this, it should be fixed now.
@keithc-ca do you have any more review comments for this? |
I was waiting for the changes you discussed in #17788 (comment) to appear here. |
1ca2932
to
59e474a
Compare
Sorry - forgot to push. They should be there now. |
Can you include the change for this comment #17788 (comment) as well ? |
59e474a
to
fbc30d3
Compare
#define J9AccStrict 0x800 | ||
#define J9AccSuper 0x20 | ||
#define J9AccSynchronized 0x20 | ||
#define J9AccSynthetic 0x1000 |
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.
This comment has not been addressed.
Also, the indentation on line 1176 is wrong.
runtime/bcutil/j9bcu.tdf
Outdated
@@ -76,7 +76,6 @@ TraceException=Trc_BCU_createRomClassEndian_CopyMethodsError Noenv Overhead=1 Le | |||
TraceException=Trc_BCU_createRomClassEndian_CopyCPShapeError Noenv Overhead=1 Level=3 Template="BCU j9bcutil_createROMClassEndian: error occurred during copyCPShapeAndPreinitDataToROM. error=%d" | |||
TraceException=Trc_BCU_createRomClassEndian_AnnotationError2 Noenv Overhead=1 Level=3 Template="BCU j9bcutil_createROMClassEndian: error occurred during buildAnnotationInfo. error=%d" | |||
TraceException=Trc_BCU_createRomClassEndian_DebugInfoError2 Noenv Overhead=1 Level=3 Template="BCU j9bcutil_createROMClassEndian: error occurred during buildDebugInfo. error=%d" | |||
TraceEvent=Trc_BCU_createRomClassEndian_Synthetic Noenv Overhead=1 Level=3 Template="BCU j9bcutil_createROMClassEndian: Setting J9AccSynthetic flag on ROMClass %p" |
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.
You can mark this tracepoint as Obsolete
. We cannot remove trace point. Each trace point has an index with it. Removing this will change the index number of all the tracepoints below.
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.
4a4e118
to
ce16de1
Compare
- Reorganized these values to be more readable - Deleted the unused values: define J9AccMandated 0x8000 define J9AccClassReferenceShift 0x1C define J9AccClassUnused400 0x400 <-- I don't think these placeholders are really helping anyone define J9AccClassUnused200 0x200 Signed-off-by: Theresa Mammarella <[email protected]>
7d5302d
to
58be28c
Compare
3250657
to
7e0b427
Compare
runtime/oti/j9javaaccessflags.h
Outdated
#define J9AccForwarderMethod 0x00002000 /* method */ | ||
#define J9AccEnum 0x00004000 /* class field */ | ||
#define J9AccEmptyMethod 0x00004000 /* method */ | ||
/* ACC_MODULE reserves 0x8000 for classes*/ |
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.
Please insert a space before */
.
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.
As well as the missing space, perhaps 0x8000
should be 0x00008000
for consistency.
I also draw your attention to my comment (https://github.com/eclipse-openj9/openj9/pull/17788/files#r1296068401) requesting a small fix to |
runtime/oti/j9javaaccessflags.h
Outdated
#define J9AccForwarderMethod 0x00002000 /* method */ | ||
#define J9AccEnum 0x00004000 /* class field */ | ||
#define J9AccEmptyMethod 0x00004000 /* method */ | ||
/* ACC_MODULE reserves 0x8000 for classes*/ |
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.
As well as the missing space, perhaps 0x8000
should be 0x00008000
for consistency.
#define J9AccStrict 0x800 | ||
#define J9AccSuper 0x20 | ||
#define J9AccSynchronized 0x20 | ||
#define J9AccSynthetic 0x1000 |
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.
7e0b427
to
e38881b
Compare
Signed-off-by: Theresa Mammarella <[email protected]>
e38881b
to
a0f0aed
Compare
Thanks @keithc-ca, I have made changes from your latest comments. |
Jenkins test sanity alinux64 jdk21 |
#define J9AccMandated 0x8000
#define J9AccClassReferenceShift 0x1C
#define J9AccClassUnused400 0x400 <-- I don't think these placeholders are really helping anyone
#define J9AccClassUnused200 0x200
Related to #17785