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

Allow dynamic predicate to be evaluated on thread that installs Block… #123

Closed

Conversation

wburns
Copy link

@wburns wburns commented May 14, 2020

…Hound

#121

@pivotal-issuemaster
Copy link

@wburns Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@@ -403,6 +403,8 @@ public void install() {
// Eagerly trigger the classloading of `dynamicThreadPredicate` (since classloading is blocking)
dynamicThreadPredicate.test(Thread.currentThread());
BlockHoundRuntime.dynamicThreadPredicate = dynamicThreadPredicate;
// Null out the state so it can be evaluated with the configured dynamicThreadPredicate
BlockHoundRuntime.STATE.set(null);
Copy link
Contributor

Choose a reason for hiding this comment

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

@bsideup
Copy link
Contributor

bsideup commented May 14, 2020

Superseded by #124

@bsideup bsideup closed this May 14, 2020
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.

3 participants