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

Fix double initialization of MUTEX in OMRMonitor.cpp #3663

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

mstoodle
Copy link
Contributor

When the Windows support was added, or maybe after some subsequent
bad merge happened, it looks like a #if for the Windows platform
was missed or removed from OMR::Monitor::init(), leaving a double
call to MUTEX_INIT. This commit wraps the code in the proper
conditional #if...#else...#endif analogous to similar code in
the destroy(), enter(), and exit() functions.

Signed-off-by: Mark Stoodley mstoodle@ca.ibm.com

When the Windows support was added, or maybe after some subsequent
bad merge happened, it looks like a #if for the Windows platform
was missed or removed from OMR::Monitor::init(), leaving a double
call to MUTEX_INIT. This commit wraps the code in the proper
conditional #if...#else...#endif analogous to similar code in
the destroy(), enter(), and exit() functions.

Signed-off-by: Mark Stoodley <mstoodle@ca.ibm.com>
@mstoodle mstoodle requested a review from 0xdaryl as a code owner March 13, 2019 20:58
@fjeremic fjeremic self-assigned this Mar 13, 2019
@fjeremic
Copy link
Contributor

@genie-omr build all

@fjeremic fjeremic merged commit b0efd34 into eclipse-omr:master Mar 13, 2019
@mstoodle mstoodle deleted the fixMonitorInit branch March 13, 2019 22:31
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