Skip to content

Commit

Permalink
Don’t write currentActor in every actorContext recording
Browse files Browse the repository at this point in the history
This seems just in the wrong place, and just writes itself, even if not necessary.

Signed-off-by: Stefan Marr <git@stefan-marr.de>
  • Loading branch information
smarr committed Apr 25, 2018
1 parent cfb630b commit 96d85dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/concurrency/ActorExecutionTrace.java
Expand Up @@ -136,11 +136,11 @@ static int getUsedBytes(final int id) {

public void recordActorContext(final TracingActor actor) {
ensureSufficientSpace(7);
currentActor = actor;
recordActorContextWithoutBufferCheck(actor);
}

private void recordActorContextWithoutBufferCheck(final TracingActor actor) {
currentActor = actor;
int id = actor.getActorId();

if (VmSettings.TRACE_SMALL_IDS) {
Expand Down

0 comments on commit 96d85dd

Please sign in to comment.