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

(0.20.0) Partial MethodType created by readObject can be used #9245

Merged
merged 3 commits into from
Apr 15, 2020

Conversation

pshipton
Copy link
Member

If the serialized MethodType contains objects which have their own readObject
method, whether from extra items in the serialized form or from the return
type or argumens fields, then the bogus MethodType object created will be
accessible from the other readObject methods, with possibly incomplete type
information.

This commit adds copies of the arguments and return type fields for use in
serialization, and sets the actual type to "()V" until readResolve is called
and creates a useable MethodType.

Set methodDescriptor string and stackDescriptionBits in case the temporary
object is accessed.

Cherry pick of the commits in #9244 for the 0.20.0 release.

Copy link
Member

@DanHeidinga DanHeidinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@DanHeidinga DanHeidinga self-assigned this Apr 14, 2020
mikezhang1234567890 and others added 3 commits April 14, 2020 16:39
If the serialized MethodType contains objects which have their own readObject
method, whether from extra items in the serialized form or from the return
type or argumens fields, then the bogus MethodType object created will be
accessible from the other readObject methods, with possibly incomplete type
information.

This commit adds copies of the arguments and return type fields for use in
serialization, and sets the actual type to "()V" until readResolve is called
and creates a useable MethodType.

Signed-off-by: Mike Zhang <mike.h.zhang@ibm.com>
Set methodDescriptor string and stackDescriptionBits in case the temporary
object is accessed.

Signed-off-by: Mike Zhang <mike.h.zhang@ibm.com>
Signed-off-by: Peter Shipton <Peter_Shipton@ca.ibm.com>
@DanHeidinga
Copy link
Member

already merged in master

@DanHeidinga DanHeidinga merged commit f46ee78 into eclipse-openj9:v0.20.0-release Apr 15, 2020
@pshipton pshipton deleted the mtser0.20 branch April 27, 2021 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants