comparison src/share/vm/oops/method.cpp @ 6999:679e6584c177

added ScopedDebugValue to add values of interest to hs_err crash logs
author Doug Simon <doug.simon@oracle.com>
date Wed, 21 Nov 2012 19:23:43 +0100
parents 2cb439954abf
children 5d0bb7d52783
comparison
equal deleted inserted replaced
6998:49f0841607b7 6999:679e6584c177
1940 guarantee(md == NULL || 1940 guarantee(md == NULL ||
1941 md->is_metadata(), "should be in permspace"); 1941 md->is_metadata(), "should be in permspace");
1942 guarantee(md == NULL || 1942 guarantee(md == NULL ||
1943 md->is_methodData(), "should be method data"); 1943 md->is_methodData(), "should be method data");
1944 } 1944 }
1945
1946 #ifdef GRAAL
1947 void DebugScopedMethod::print_on(outputStream* st) {
1948 if (_method != NULL) {
1949 st->print("Method@%p", _method);
1950 char holder[O_BUFLEN];
1951 char nameAndSig[O_BUFLEN];
1952 _method->method_holder()->name()->as_C_string(holder, O_BUFLEN);
1953 _method->name_and_sig_as_C_string(nameAndSig, O_BUFLEN);
1954 st->print(" - %s::%s", holder, nameAndSig);
1955 }
1956 }
1957 #endif