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

Ensure return code checked first in MXBean code #4683

Merged
merged 1 commit into from
Feb 12, 2019

Conversation

DanHeidinga
Copy link
Member

@DanHeidinga DanHeidinga commented Feb 11, 2019

The values in Eclipse OMR for the unlimited and unknown are the same:

#define OMRPORT_LIMIT_UNLIMITED_VALUE (J9CONST64(0xffffffffffffffff))
#define OMRPORT_LIMIT_UNKNOWN_VALUE (J9CONST64(0xffffffffffffffff))

https://github.com/eclipse/omr/blob/cf3e1b622090ddb922717aa1b8c616ffa11c80a7/include_core/omrport.h#L161-L162

We need to differentiate between them based on the return value
of the j9sysinfo_get_limit call - it will return
OMRPORT_LIMIT_UNKNOWN in the unknown case.

Also fixed the tabs vs spaces issues in surrounding code.

Signed-off-by: Dan Heidinga daniel_heidinga@ca.ibm.com

The values in Eclipse OMR for the unlimited and unknown are the same:
```
```
https://github.com/eclipse/omr/blob/cf3e1b622090ddb922717aa1b8c616ffa11c80a7/include_core/omrport.h#L161-L162

We need to differentiate between them based on the return value
of the `j9sysinfo_get_limit` call - it will return
`OMRPORT_LIMIT_UNKNOWN` in the unknown case.

Also fixed the tabs vs spaces issues in surrounding code.

Signed-off-by: Dan Heidinga <daniel_heidinga@ca.ibm.com>
@pshipton
Copy link
Member

jenkins test sanity xlinux jdk8

@pshipton pshipton added the bug label Feb 11, 2019
@pshipton
Copy link
Member

jenkins test sanity plinux jdk8

@pshipton pshipton merged commit 20f28f6 into eclipse-openj9:master Feb 12, 2019
@DanHeidinga DanHeidinga deleted the djh/returncheck branch February 12, 2019 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants