Skip to content

Commit 07ca0d2

Browse files
committed
initialize member variables of Dispatch Table
1 parent 1cc4750 commit 07ca0d2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

rir/src/interpreter/interp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,16 +1124,12 @@ RIR_INLINE SEXP rirCall(CallContext& call, InterpreterInstance* ctx) {
11241124
Function* fun = dispatch(call, table);
11251125
fun->registerInvocation();
11261126

1127-
#if LOGG > 0
11281127
Context assumptions = call.givenContext;
11291128
fun->clearDisabledAssumptions(assumptions);
11301129
assumptions = table->combineContextWith(assumptions);
1131-
#endif
11321130

11331131
if (
1134-
#if LOGG > 0
11351132
!table->isBlacklisted(assumptions) &&
1136-
#endif
11371133
!isDeoptimizing() && RecompileHeuristic(table, fun)) {
11381134
Context given = call.givenContext;
11391135
// addDynamicAssumptionForOneTarget compares arguments with the

rir/src/runtime/DispatchTable.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ struct DispatchTable
237237
// GC area starts at the end of the DispatchTable
238238
sizeof(DispatchTable),
239239
// GC area is just the pointers in the entry array
240-
cap) {}
240+
cap), hast(0) {
241+
for(int i = 0; i< BLACKLIST_SIZE; i++) { contextBlacklist_[i]=0; }
242+
}
241243

242244
size_t size_ = 0;
243245
Context userDefinedContext_;

0 commit comments

Comments
 (0)