Mercurial > hg > graal-jvmci-8
diff src/share/vm/utilities/decoder.hpp @ 14422:2b8e28fdf503
Merge
author | kvn |
---|---|
date | Tue, 05 Nov 2013 17:38:04 -0800 |
parents | 38f750491293 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/utilities/decoder.hpp Wed Oct 16 10:52:41 2013 +0200 +++ b/src/share/vm/utilities/decoder.hpp Tue Nov 05 17:38:04 2013 -0800 @@ -28,6 +28,7 @@ #include "memory/allocation.hpp" #include "runtime/mutex.hpp" +#include "runtime/mutexLocker.hpp" class AbstractDecoder : public CHeapObj<mtInternal> { public: @@ -124,6 +125,19 @@ protected: static Mutex* _shared_decoder_lock; + static Mutex* shared_decoder_lock(); + + friend class DecoderLocker; +}; + +class DecoderLocker : public MutexLockerEx { + AbstractDecoder* _decoder; + inline bool is_first_error_thread(); +public: + DecoderLocker(); + AbstractDecoder* decoder() { + return _decoder; + } }; #endif // SHARE_VM_UTILITIES_DECODER_HPP