Skip to content

Commit

Permalink
fix a potential data race in TaskMemoryManager
Browse files Browse the repository at this point in the history
  • Loading branch information
lw-lin committed Apr 26, 2016
1 parent 0c8e533 commit 6b72b96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public class TaskMemoryManager {
/**
* The amount of memory that is acquired but not used.
*/
private long acquiredButNotUsed = 0L;
private volatile long acquiredButNotUsed = 0L;

/**
* Construct a new TaskMemoryManager.
Expand Down

0 comments on commit 6b72b96

Please sign in to comment.