提交 f949d246 编写于 作者: O ohair

6855551: java -Xrunhprof crashes when running with classes compiled with targed=7

Reviewed-by: tbell, dcubed
上级 df24c3d0
...@@ -263,8 +263,8 @@ assert_error(CrwClassImage *ci, const char *condition, ...@@ -263,8 +263,8 @@ assert_error(CrwClassImage *ci, const char *condition,
(void)sprintf(buf, (void)sprintf(buf,
"CRW ASSERTION FAILURE: %s (%s:%s:%d)", "CRW ASSERTION FAILURE: %s (%s:%s:%d)",
condition, condition,
ci->name==0?"?":ci->name, ci->name==NULL?"?":ci->name,
mi->name==0?"?":mi->name, (mi==NULL||mi->name==NULL)?"?":mi->name,
byte_code_offset); byte_code_offset);
fatal_error(ci, buf, file, line); fatal_error(ci, buf, file, line);
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
/* HelloWorld: /* HelloWorld:
* *
* Sample target appluication for HPROF tests * Sample target application for HPROF tests
* *
*/ */
......
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
/* @test /* @test
* @bug 6266289 6299047 * @bug 6266289 6299047 6855180 6855551
* @summary Test jvmti hprof and java_crw_demo with StackMapTable attributes * @summary Test jvmti hprof and java_crw_demo with StackMapTable attributes
* *
* @compile ../DemoRun.java * @compile ../DemoRun.java
* @compile -source 1.6 -g:lines HelloWorld.java * @compile -source 7 -g:lines HelloWorld.java
* @build StackMapTableTest * @build StackMapTableTest
* @run main StackMapTableTest HelloWorld * @run main StackMapTableTest HelloWorld
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册