8148696: Race loading hsdis may cause SIGSEGV
authorneliasso
Mon, 08 Feb 2016 14:05:45 +0100
changeset 35830 f327d6231b16
parent 35829 f80ccf2a14a5
child 35832 2207cea1d26d
8148696: Race loading hsdis may cause SIGSEGV Summary: Guard library loading with a lock Reviewed-by: vlivanov
hotspot/src/share/vm/compiler/disassembler.hpp
--- a/hotspot/src/share/vm/compiler/disassembler.hpp	Mon Feb 08 08:57:39 2016 +0100
+++ b/hotspot/src/share/vm/compiler/disassembler.hpp	Mon Feb 08 14:05:45 2016 +0100
@@ -85,6 +85,7 @@
 
  public:
   static bool can_decode() {
+    ttyLocker tl;
     return (_decode_instructions_virtual != NULL) ||
            (_decode_instructions != NULL) ||
            load_library();