Skip to content

Commit

Permalink
Toss out now-unrequired call counting bits.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 17, 2017
1 parent 2d6a1b7 commit 3f805ef
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
8 changes: 0 additions & 8 deletions src/6model/reprs/MVMStaticFrame.h
Expand Up @@ -31,14 +31,6 @@ struct MVMStaticFrameBody {
* the VM instance wide field for this. */
MVMuint32 instrumentation_level;

/* Rough call count. May be hit up by multiple threads, and lose the odd
* count, but that's fine; it's just a rough indicator, used to make
* decisions about optimization. */
MVMuint32 invocations;

/* Number of times we should invoke before spesh applies. */
MVMuint32 spesh_threshold;

/* Recorded count for data recording for the specializer. Incremented
* until the recording threshold is reached, and may be cleared by the
* specialization worker later if it wants more data recorded. Allowed
Expand Down
3 changes: 0 additions & 3 deletions src/core/frame.c
Expand Up @@ -58,9 +58,6 @@ static void prepare_and_verify_static_frame(MVMThreadContext *tc, MVMStaticFrame
break;
}
}

/* Set its spesh threshold. */
static_frame_body->spesh_threshold = MVM_spesh_threshold(tc, static_frame);
}

/* Unlock, now we're finished. */
Expand Down
6 changes: 0 additions & 6 deletions src/spesh/osr.c
Expand Up @@ -140,10 +140,4 @@ void MVM_spesh_osr_finalize(MVMThreadContext *tc) {
MVM_profiler_log_osr(tc, 0);
}
*(tc->interp_reg_base) = tc->cur_frame->work;

/* Tweak frame invocation count so future invocations will use the code
* produced by OSR. */
tc->cur_frame->static_info->body.invocations +=
tc->cur_frame->static_info->body.spesh_threshold;
}

0 comments on commit 3f805ef

Please sign in to comment.