-
Notifications
You must be signed in to change notification settings - Fork 721
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
Fix padding in jvmtiCapabilities structure #15451
Fix padding in jvmtiCapabilities structure #15451
Conversation
Jdk19 before and after:
|
@tajila @babsingh I could also change it to use compound conditions.
Alternative:
Is this better? |
re #15451 (comment): IMO, the alternative is easier to understand. So, +1 for the alternative. The current nested version can lead to errors due to lack of simplicity. Will the below also work; it avoids duplicates?
|
50dfd03
to
82c7b8d
Compare
I think this is more confusing than the first alternative |
In the first alternative, the duplicates are a drawback. @tajila What are your thoughts? |
JvmtiCapabilities struct cannot have padding between fields. Signed-off-by: Eric Yang <eric.yang@ibm.com>
82c7b8d
to
da9cd78
Compare
I generally like to avoid duplication, so I dont mind the nesting too much |
So this pr is fine to be merged? |
jenkins test sanity amac jdk19 |
jenkins compile win jdk19 |
only test failure is known issue |
JvmtiCapabilities struct cannot have padding between fields.
Signed-off-by: Eric Yang eric.yang@ibm.com