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

gROOTMutex -> RWLock #596

Closed
wants to merge 11 commits into from
Closed

gROOTMutex -> RWLock #596

wants to merge 11 commits into from

Conversation

pcanal
Copy link
Member

@pcanal pcanal commented May 31, 2017

One pending question (beside whether this is performant enough) is whether to keep the old TRWSpinLock and the new TRWSpinLock (Reentrant) or to have them (as in this MR) the same.

@phsft-bot
Copy link
Collaborator

Starting build on gcc49/centos7, native/mac1012, gcc49/slc6, gcc62/slc6, native/ubuntu14 with CMake flags -Dvc=OFF -Dimt=ON -Dccache=ON

@pcanal
Copy link
Member Author

pcanal commented May 31, 2017

@etejedor Could you take a look?

@@ -155,7 +155,7 @@ friend class TPluginManager;
// resource ... and both SetParams and Execute ends up taking the lock
// individually anyway ...

R__LOCKGUARD2(gInterpreterMutex);
R__LOCKGUARD(gInterpreterMutex);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we also apply the same fix to all occurrences of R__LOCKGUARD_IMT2 and replace them by R__LOCKGUARD_IMT?

Copy link
Member Author

Choose a reason for hiding this comment

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

It depends on whether the mutex guard is guaranteed to be initialized or not ....

@phsft-bot
Copy link
Collaborator

Starting build on gcc49/centos7, native/mac1012, gcc49/slc6, gcc62/slc6, native/ubuntu14 with CMake flags -Dvc=OFF -Dimt=ON -Dccache=ON

@phsft-bot
Copy link
Collaborator

Build failed on ubuntu14/native.
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

@phsft-bot
Copy link
Collaborator

Build failed on slc6/gcc62.
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on slc6/gcc49.
See console output.

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on centos7/gcc49.
See console output.

Failing tests:

@dpiparo
Copy link
Member

dpiparo commented Jun 13, 2017

If my two minor comments are addressed this pr for me is ready to go.

@pcanal
Copy link
Member Author

pcanal commented Jun 13, 2017

@dpiparo I don't see the comments.

Besides, after further development, I found the need also make the lock re-entrant from Read to Write lock making it relatively heavy so I am planning to actually separate the simple RW lock from the re-entrant one.

So once I find (and address) the comments, I will close this.

@pcanal pcanal changed the title [WIP] gROOTMutex -> RWLock gROOTMutex -> RWLock Jun 22, 2017
@pcanal
Copy link
Member Author

pcanal commented Jun 22, 2017

@phsft-bot build please.

@pcanal pcanal closed this Jun 22, 2017
@phsft-bot
Copy link
Collaborator

Starting build on gcc49/centos7, native/mac1012, gcc49/slc6, gcc62/slc6, native/ubuntu14 with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

1 similar comment
@phsft-bot
Copy link
Collaborator

Starting build on gcc49/centos7, native/mac1012, gcc49/slc6, gcc62/slc6, native/ubuntu14 with flags -Dvc=OFF -Dimt=ON -Dccache=ON
How to customize builds

@phsft-bot
Copy link
Collaborator

Build failed on ubuntu14/native.
See console output.

Warnings:

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on slc6/gcc62.
See console output.

Warnings:

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on slc6/gcc49.
See console output.

Warnings:

Failing tests:

@phsft-bot
Copy link
Collaborator

Build failed on mac1012/native.
See console output.

Warnings:

Failing tests:

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.

4 participants