-
Notifications
You must be signed in to change notification settings - Fork 273
add Java monitorenter/exit symbols #2286
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
Conversation
code_typet type; | ||
type.return_type() = void_typet(); | ||
type.parameters().resize(1); | ||
type.parameters()[0].type() = java_reference_type(void_typet()); |
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.
Perhaps an Object *, since that defines the @lock field they are expected to use?
Marking do-not-merge as per #2280 (comment). |
code_typet type; | ||
type.return_type() = void_typet(); | ||
type.parameters().resize(1); | ||
type.parameters()[0].type() = java_reference_type(void_typet()); |
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.
Once the other concerns are addressed, please use the new code_typet
constructor that takes two arguments.
d03cf29
to
657d744
Compare
Both done |
@kroening I don't think this is needed. The critical section is implemented as part of the java-model library (https://github.com/diffblue/java-models-library) in two methods: |
Hi @tautschnig, would it be possible for this to be rebased on top of current |
I guess it's up to @kroening for this one - based on earlier comments it's not clear to me whether this is needed at all. |
I think this can be closed as obsolete. |
I am going forward with closing this as previous comments indicate this is now obsolete. |
These are needed for any "synchronized" methods.