Commit c803d390 authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5742 #5672 suppress more valgrind stuff

git-svn-id: file:///svn/toku/tokudb@50720 c7de825b-a66e-492c-adef-691d508d4ae1
parent 3917d927
......@@ -323,12 +323,13 @@ void locktree::reset_single_txnid_optimization(TXNID txnid) {
m_single_txnid_optimization_possible = true;
}
inline bool locktree::unsafe_read_single_txnid_optimization_possible(void) const {
return m_single_txnid_optimization_possible;
}
bool locktree::try_single_txnid_release_optimization(TXNID txnid) {
bool released = false;
TOKU_DRD_IGNORE_VAR(m_single_txnid_optimization_possible);
bool optimization_possible = m_single_txnid_optimization_possible;
TOKU_DRD_STOP_IGNORING_VAR(m_single_txnid_optimization_possible);
if (optimization_possible) {
if (unsafe_read_single_txnid_optimization_possible()) {
// check the bit again with a prepared locked keyrange,
// which protects the optimization bits and rangetree data
concurrent_tree::locked_keyrange lkr;
......
......@@ -283,6 +283,12 @@ private:
// effect: Sets the single txnid bit to be true for the given txnid
void reset_single_txnid_optimization(TXNID txnid);
// Effect:
// Provides a hook for a helgrind suppression.
// Returns:
// m_single_txnid_optimization_possible
bool unsafe_read_single_txnid_optimization_possible(void) const;
// effect: Creates a locktree that uses the given memory tracker
// to report memory usage and honor memory constraints.
void create(manager::memory_tracker *mem_tracker, DICTIONARY_ID dict_id,
......
......@@ -83,4 +83,9 @@
drd:ConflictingAccess
fun:_ZL18unsafe_touch_clockP6ftnodei
...
}
\ No newline at end of file
}
{
unsafe_read_single_txnid_optimization_possible
drd:ConflictingAccess
fun:_ZNK4toku8locktree46unsafe_read_single_txnid_optimization_possibleEv
}
......@@ -33,7 +33,11 @@
unsafe_touch_clock
Helgrind:Race
fun:_ZL18unsafe_touch_clockP6ftnodei
fun:_Z27toku_ftnode_pf_req_callbackPvS_
}
{
unsafe_read_single_txnid_optimization_possible
Helgrind:Race
fun:_ZNK4toku8locktree46unsafe_read_single_txnid_optimization_possibleEv
}
{
kde_bug_307082_cond_destroy_without_signal
......@@ -92,3 +96,27 @@
fun:_Z16toku_ydb_destroyv
fun:_ZL17libtokudb_destroyv
}
{
kde_bug_307082_cond_destroy_without_signal
Helgrind:Misc
...
fun:pthread_cond_destroy@*
fun:_ZL17toku_cond_destroyP9toku_cond
fun:_Z22toku_minicron_shutdownP8minicron
}
{
kde_bug_307082_cond_destroy_without_signal
Helgrind:Misc
...
fun:pthread_cond_destroy@*
fun:_ZL17toku_cond_destroyP9toku_cond
fun:_ZN4toku12lock_request7destroyEv
}
{
kde_bug_307082_cond_destroy_without_signal
Helgrind:Misc
...
fun:pthread_cond_destroy@*
fun:_ZL17toku_cond_destroyP9toku_cond
fun:_Z17toku_logger_closePP10tokulogger
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment