Skip to content

Commit

Permalink
Merge pull request #5190 from hangshao0/Test
Browse files Browse the repository at this point in the history
Set _started to false in shutdownForStats() after exitWriteMutex()
  • Loading branch information
pshipton authored Mar 21, 2019
2 parents 5b54880 + c18a9f8 commit af83b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/shared_common/CompositeCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5557,12 +5557,12 @@ SH_CompositeCacheImpl::shutdownForStats(J9VMThread* currentThread)
notifyPagesRead(CASTART(_theca), CAEND(_theca), DIRECTION_FORWARD, false);
}

_started = false;

if (exitWriteMutex(currentThread, fnName) != 0) {
if (exitWriteMutex(currentThread, fnName, false) != 0) {
_started = false;
retval = -1;
goto done;
}
_started = false;
}

if (_commonCCInfo->writeMutexEntryCount != 0) {
Expand Down

0 comments on commit af83b37

Please sign in to comment.