Mercurial > hg > graal-compiler
diff src/share/vm/services/memTrackWorker.hpp @ 10096:35f8765422b9
8010151: nsk/regression/b6653214 fails "assert(snapshot != NULL) failed: Worker should not be started"
Summary: Fixed a racing condition when shutting down NMT while worker thread is being started, also fixed a few mis-declared volatile pointers.
Reviewed-by: dholmes, dlong
author | zgu |
---|---|
date | Wed, 10 Apr 2013 08:55:50 -0400 |
parents | 4102b59539ce |
children | b80cc96882f7 |
line wrap: on
line diff
--- a/src/share/vm/services/memTrackWorker.hpp Tue Apr 09 08:52:32 2013 -0700 +++ b/src/share/vm/services/memTrackWorker.hpp Wed Apr 10 08:55:50 2013 -0400 @@ -85,8 +85,10 @@ bool _has_error; + MemSnapshot* _snapshot; + public: - MemTrackWorker(); + MemTrackWorker(MemSnapshot* snapshot); ~MemTrackWorker(); _NOINLINE_ void* operator new(size_t size); _NOINLINE_ void* operator new(size_t size, const std::nothrow_t& nothrow_constant);