< prev index next >

src/hotspot/share/utilities/decoder.cpp

Print this page
rev 56464 : 8231707: Improve Mutex inlining
Contributed-by: robbin.ehn@oracle.com, claes.redestad@oracle.com


   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "memory/allocation.inline.hpp"
  28 #include "runtime/os.hpp"

  29 #include "utilities/decoder.hpp"
  30 #include "utilities/vmError.hpp"
  31 
  32 #ifndef _WINDOWS
  33 #if defined(__APPLE__)
  34   #include "decoder_machO.hpp"
  35 #elif defined(AIX)
  36   #include "decoder_aix.hpp"
  37 #else
  38   #include "decoder_elf.hpp"
  39 #endif
  40 
  41 AbstractDecoder*  Decoder::_shared_decoder = NULL;
  42 AbstractDecoder*  Decoder::_error_handler_decoder = NULL;
  43 NullDecoder       Decoder::_do_nothing_decoder;
  44 
  45 AbstractDecoder* Decoder::get_shared_instance() {
  46   assert(shared_decoder_lock()->owned_by_self(), "Require DecoderLock to enter");
  47 
  48   if (_shared_decoder == NULL) {




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "jvm.h"
  27 #include "memory/allocation.inline.hpp"
  28 #include "runtime/os.hpp"
  29 #include "runtime/mutexLocker.inline.hpp"
  30 #include "utilities/decoder.hpp"
  31 #include "utilities/vmError.hpp"
  32 
  33 #ifndef _WINDOWS
  34 #if defined(__APPLE__)
  35   #include "decoder_machO.hpp"
  36 #elif defined(AIX)
  37   #include "decoder_aix.hpp"
  38 #else
  39   #include "decoder_elf.hpp"
  40 #endif
  41 
  42 AbstractDecoder*  Decoder::_shared_decoder = NULL;
  43 AbstractDecoder*  Decoder::_error_handler_decoder = NULL;
  44 NullDecoder       Decoder::_do_nothing_decoder;
  45 
  46 AbstractDecoder* Decoder::get_shared_instance() {
  47   assert(shared_decoder_lock()->owned_by_self(), "Require DecoderLock to enter");
  48 
  49   if (_shared_decoder == NULL) {


< prev index next >