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

CRIU: correct type of pool elements in instanceObjects #16548

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

keithc-ca
Copy link
Contributor

@keithc-ca keithc-ca commented Jan 12, 2023

The clazz field of a J9Object isn't generally wide enough to properly capture an object pointer: use j9object_t instead. This issue was highlighted by a couple of cast errors in builds configured using --with-mixedrefs=no:

CRIUHelpers.cpp:195:52: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
CRIUHelpers.cpp:334:44: error: cast from 'j9object_t {aka J9Object*}' to 'j9objectclass_t {aka unsigned int}' loses precision [-fpermissive]

Also add missing include directory required in UMA builds.

The 'clazz' field of a J9Object isn't generally wide enough to properly
capture an object pointer: use j9object_t instead. This issue was
highlighted by a couple of cast errors in builds configured using
"--with-mixedrefs=no":

CRIUHelpers.cpp:195:52: error: cast to pointer from integer of different
size [-Werror=int-to-pointer-cast]
CRIUHelpers.cpp:334:44: error: cast from 'j9object_t {aka J9Object*}' to
'j9objectclass_t {aka unsigned int}' loses precision [-fpermissive]

Also add missing include directory required in UMA builds.

Signed-off-by: Keith W. Campbell <keithc@ca.ibm.com>
@keithc-ca keithc-ca requested a review from tajila January 12, 2023 18:54
@tajila
Copy link
Contributor

tajila commented Jan 12, 2023

Jenkins test sanity xlinux jdk17

@tajila tajila merged commit bb8cc9c into eclipse-openj9:master Jan 13, 2023
@keithc-ca keithc-ca deleted the criu branch January 13, 2023 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants