Skip to content

Commit

Permalink
fix message numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
daumayr committed May 10, 2017
1 parent ff64e22 commit 88eba66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/som/interpreter/actors/Actor.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ protected void onTermination(final Throwable exception) {

synchronized (statsLock) {
numCreatedActors += createdActors;
numCreatedMessages += createdMessages;
numCreatedMessages += createdMessages - skippedMessages;
numCreatedPromises += createdPromises;
numResolvedPromises += resolvedPromises;
numRuinedPromises += erroredPromises;
Expand Down
1 change: 1 addition & 0 deletions src/tools/concurrency/TraceBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ private void writeMessage(final EventualMessage em, final long sendTS,
final long execTS) {

if (em instanceof UntracedMessage) {
((TracingActivityThread) Thread.currentThread()).skippedMessages++;
return;
}

Expand Down
2 changes: 2 additions & 0 deletions src/tools/concurrency/TracingActivityThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public abstract class TracingActivityThread extends ForkJoinWorkerThread
protected long nextMessageId;
protected long nextPromiseId;

public long skippedMessages = 0;

// Used for tracing, accessed by the ExecAllMessages classes
public long createdMessages;
public long resolvedPromises;
Expand Down

0 comments on commit 88eba66

Please sign in to comment.