comparison src/share/vm/oops/method.cpp @ 8151:b8f261ba79c6

Minimize diff to plain HotSpot version.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Mar 2013 21:00:29 +0100
parents 5fc51c1ecdeb
children 6c4db417385a
comparison
equal deleted inserted replaced
8150:b66f831ac5ab 8151:b8f261ba79c6
52 #include "runtime/relocator.hpp" 52 #include "runtime/relocator.hpp"
53 #include "runtime/sharedRuntime.hpp" 53 #include "runtime/sharedRuntime.hpp"
54 #include "runtime/signature.hpp" 54 #include "runtime/signature.hpp"
55 #include "utilities/quickSort.hpp" 55 #include "utilities/quickSort.hpp"
56 #include "utilities/xmlstream.hpp" 56 #include "utilities/xmlstream.hpp"
57 #ifdef GRAAL
58 #include "graal/graalJavaAccess.hpp"
59 #endif
60 57
61 58
62 // Implementation of Method 59 // Implementation of Method
63 60
64 Method* Method::allocate(ClassLoaderData* loader_data, 61 Method* Method::allocate(ClassLoaderData* loader_data,
710 tty->print(" %s", reason); 707 tty->print(" %s", reason);
711 } 708 }
712 tty->cr(); 709 tty->cr();
713 } 710 }
714 if ((TraceDeoptimization || LogCompilation) && (xtty != NULL)) { 711 if ((TraceDeoptimization || LogCompilation) && (xtty != NULL)) {
715 ResourceMark rm;
716 ttyLocker ttyl; 712 ttyLocker ttyl;
717 xtty->begin_elem("make_not_%scompilable thread='" UINTX_FORMAT "'", 713 xtty->begin_elem("make_not_%scompilable thread='" UINTX_FORMAT "'",
718 is_osr ? "osr_" : "", os::current_thread_id()); 714 is_osr ? "osr_" : "", os::current_thread_id());
719 if (reason != NULL) { 715 if (reason != NULL) {
720 xtty->print(" reason=\'%s\'", reason); 716 xtty->print(" reason=\'%s\'", reason);
1942 guarantee(md == NULL || 1938 guarantee(md == NULL ||
1943 md->is_metadata(), "should be metadata"); 1939 md->is_metadata(), "should be metadata");
1944 guarantee(md == NULL || 1940 guarantee(md == NULL ||
1945 md->is_methodData(), "should be method data"); 1941 md->is_methodData(), "should be method data");
1946 } 1942 }
1947
1948 #ifdef GRAAL
1949 void DebugScopedMethod::print_on(outputStream* st) {
1950 if (_method != NULL) {
1951 st->print("Method@%p", _method);
1952 char holder[O_BUFLEN];
1953 char nameAndSig[O_BUFLEN];
1954 _method->method_holder()->name()->as_C_string(holder, O_BUFLEN);
1955 _method->name_and_sig_as_C_string(nameAndSig, O_BUFLEN);
1956 st->print(" - %s::%s", holder, nameAndSig);
1957 }
1958 }
1959 #endif