hotspot/src/share/vm/opto/runtime.cpp
changeset 12981 b557c10f5444
parent 10987 696ed3367418
child 12985 b8e776b87b52
equal deleted inserted replaced
11557:498124337041 12981:b557c10f5444
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   894 
   894 
   895     if (n->is_nmethod()) {
   895     if (n->is_nmethod()) {
   896       methodOop method = ((nmethod*)n)->method();
   896       methodOop method = ((nmethod*)n)->method();
   897       tty->print_cr("# Method where it happened %s.%s ", Klass::cast(method->method_holder())->name()->as_C_string(), method->name()->as_C_string());
   897       tty->print_cr("# Method where it happened %s.%s ", Klass::cast(method->method_holder())->name()->as_C_string(), method->name()->as_C_string());
   898       tty->print_cr("#");
   898       tty->print_cr("#");
   899       if (ShowMessageBoxOnError && UpdateHotSpotCompilerFileOnError) {
   899       if (ShowMessageBoxOnError && UpdateHotSpotCompilerFileOnError &&
       
   900           CompilerOracle::has_command_file()) {
   900         const char* title    = "HotSpot Runtime Error";
   901         const char* title    = "HotSpot Runtime Error";
   901         const char* question = "Do you want to exclude compilation of this method in future runs?";
   902         const char* question = "Do you want to exclude compilation of this method in future runs?";
   902         if (os::message_box(title, question)) {
   903         if (os::message_box(title, question)) {
   903           CompilerOracle::append_comment_to_file("");
   904           CompilerOracle::append_comment_to_file("");
   904           CompilerOracle::append_comment_to_file("Null exception in compiled code resulted in the following exclude");
   905           CompilerOracle::append_comment_to_file("Null exception in compiled code resulted in the following exclude");