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

[Trivial] Add config include for building DEBUG_LOCKCONTENTION #937

Merged
merged 1 commit into from
May 1, 2021

Conversation

Zannick
Copy link
Collaborator

@Zannick Zannick commented Apr 25, 2021

config/veil-config.h includes HAVE_THREAD_LOCAL, without which DEBUG_LOCKCONTENTION will fail to build due to the static_assert.

This allows building with ./configure CPPFLAGS="-DDEBUG_LOCKCONTENTION" without manually adding -DHAVE_THREAD_LOCAL (when thread_local exists, of course).

Tested

Built via ./configure --with-incompatible-bdb CPPFLAGS="-DDEBUG_LOCKCONTENTION" on Fedora, CONFIG_SITE=$PWD/depends/x64_64-w64-mingw32/share/config.site ./configure --prefix=/ CPPFLAGS="-DDEBUG_LOCKCONTENTION" on WSL Ubuntu 20.04

config/veil-config.h includes `HAVE_THREAD_LOCAL`, without which
`DEBUG_LOCKCONTENTION` will fail to build due to the `static_assert`.

This allows building with `./configure CPPFLAGS="-DDEBUG_LOCKCONTENTION"`
without manually adding `-DHAVE_THREAD_LOCAL`.
@CaveSpectre11
Copy link
Collaborator

This might work. I'll need to dig up the weirdness that happened with OSX when I made the option available.

Copy link
Collaborator

@CaveSpectre11 CaveSpectre11 left a comment

Choose a reason for hiding this comment

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

utACK f86a618

I was confusing a couple different issues; the issue I'm thinking of was in the debug logging on MAC, the issue I had with DEBUG_LOCKCONTENTION is it sometimes flags things as potential deadlocks that aren't; which is why I stopped running with it on except when I was specifically looking for something.

Copy link
Collaborator

@codeofalltrades codeofalltrades left a comment

Choose a reason for hiding this comment

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

ACK f86a618

@codeofalltrades codeofalltrades merged commit 564eb84 into Veil-Project:master May 1, 2021
@Zannick Zannick deleted the lockcontention branch May 18, 2021 03:34
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.

None yet

3 participants