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 bug #6623 : Wrapper.log: Lots of "setNativePriority(X) has failed!" #435
Conversation
|
@toad thinks it's a must-have for next release |
|
Yes, but we should fix the API too before closing #6623. |
|
This is the correct fix for build 1471, i.e. a one line fix and javadocs. I have filed a bug for a longer term solution. |
|
Bug in question is https://bugs.freenetproject.org/view.php?id=6743 This fix is the same as the patch in https://bugs.freenetproject.org/view.php?id=6623 and as bertm says
I'd rather not merge a half-measure like this that just disables the logging. |
|
Respectfully, @bertm is wrong :) This is not a half-measure, it's the real fix. I'm the one who introduced the said buggy code and we've extensively discussed it with toad already. The check behind the boolean doesn't make much sense (and yes it's also my code) and it definitely doesn't in this specific instance. |
|
Oh. Alright. |
|
You all seem to be reading my comment out of context. This does not fix the logging behaviour bug 6623 reported, but does fix this particular source of the error (and adds Javadoc to hopefully prevent future instances). If NativeThreads are somehow disabled—i.e. Fred is reniced, which it shouldn't be, but heh—it will still spit out hundreds of I do however agree that this fixes this particular instance where NativeThreads are disabled inappropriately, and give my full ack for merging. |
|
Whoops, I was not intending to quote you out of context. Sorry about that. |
This is something I've introduced in 7487c51