Mercurial > hg > graal-compiler
diff src/share/vm/oops/generateOopMap.cpp @ 1681:126ea7725993
6953477: Increase portability and flexibility of building Hotspot
Summary: A collection of portability improvements including shared code support for PPC, ARM platforms, software floating point, cross compilation support and improvements in error crash detail.
Reviewed-by: phh, never, coleenp, dholmes
author | bobv |
---|---|
date | Tue, 03 Aug 2010 08:13:38 -0400 |
parents | e9ff18c4ace7 |
children | d1896d1dda3e |
line wrap: on
line diff
--- a/src/share/vm/oops/generateOopMap.cpp Wed Jul 28 17:57:43 2010 -0400 +++ b/src/share/vm/oops/generateOopMap.cpp Tue Aug 03 08:13:38 2010 -0400 @@ -2111,7 +2111,13 @@ // We do not distinguish between different types of errors for verification // errors. Let the verifier give a better message. const char *msg = "Illegal class file encountered. Try running with -Xverify:all"; - error_work(msg, NULL); + _got_error = true; + // Append method name + char msg_buffer2[512]; + jio_snprintf(msg_buffer2, sizeof(msg_buffer2), "%s in method %s", msg, + method()->name()->as_C_string()); + _exception = Exceptions::new_exception(Thread::current(), + vmSymbols::java_lang_LinkageError(), msg_buffer2); } //