From 07ca0d205a9d84a0038dbddb9aa319e68f0e6f1b Mon Sep 17 00:00:00 2001 From: Meetesh Mehta Date: Fri, 3 Sep 2021 00:41:54 +0530 Subject: [PATCH] initialize member variables of Dispatch Table --- rir/src/interpreter/interp.cpp | 4 ---- rir/src/runtime/DispatchTable.h | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rir/src/interpreter/interp.cpp b/rir/src/interpreter/interp.cpp index 8f24c70b6..e8024a804 100644 --- a/rir/src/interpreter/interp.cpp +++ b/rir/src/interpreter/interp.cpp @@ -1124,16 +1124,12 @@ RIR_INLINE SEXP rirCall(CallContext& call, InterpreterInstance* ctx) { Function* fun = dispatch(call, table); fun->registerInvocation(); - #if LOGG > 0 Context assumptions = call.givenContext; fun->clearDisabledAssumptions(assumptions); assumptions = table->combineContextWith(assumptions); - #endif if ( - #if LOGG > 0 !table->isBlacklisted(assumptions) && - #endif !isDeoptimizing() && RecompileHeuristic(table, fun)) { Context given = call.givenContext; // addDynamicAssumptionForOneTarget compares arguments with the diff --git a/rir/src/runtime/DispatchTable.h b/rir/src/runtime/DispatchTable.h index 203a19e27..b00955c2c 100644 --- a/rir/src/runtime/DispatchTable.h +++ b/rir/src/runtime/DispatchTable.h @@ -237,7 +237,9 @@ struct DispatchTable // GC area starts at the end of the DispatchTable sizeof(DispatchTable), // GC area is just the pointers in the entry array - cap) {} + cap), hast(0) { + for(int i = 0; i< BLACKLIST_SIZE; i++) { contextBlacklist_[i]=0; } + } size_t size_ = 0; Context userDefinedContext_;