Mercurial > hg > graal-compiler
comparison src/share/vm/opto/subnode.cpp @ 20680:5b8e0f84f00f
8054478: C2: Incorrectly compiled char[] array access crashes JVM
Summary: dead backbranch in main loop results in erroneous array access
Reviewed-by: kvn, iveresov
author | roland |
---|---|
date | Mon, 01 Dec 2014 22:27:00 +0100 |
parents | 1555c0843770 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20678:97f4214e9a70 | 20680:5b8e0f84f00f |
---|---|
1145 return TypeInt::BOOL; | 1145 return TypeInt::BOOL; |
1146 } | 1146 } |
1147 | 1147 |
1148 //------------------------------dump_spec------------------------------------- | 1148 //------------------------------dump_spec------------------------------------- |
1149 // Print special per-node info | 1149 // Print special per-node info |
1150 #ifndef PRODUCT | |
1151 void BoolTest::dump_on(outputStream *st) const { | 1150 void BoolTest::dump_on(outputStream *st) const { |
1152 const char *msg[] = {"eq","gt","of","lt","ne","le","nof","ge"}; | 1151 const char *msg[] = {"eq","gt","of","lt","ne","le","nof","ge"}; |
1153 st->print("%s", msg[_test]); | 1152 st->print("%s", msg[_test]); |
1154 } | 1153 } |
1155 #endif | |
1156 | 1154 |
1157 //============================================================================= | 1155 //============================================================================= |
1158 uint BoolNode::hash() const { return (Node::hash() << 3)|(_test._test+1); } | 1156 uint BoolNode::hash() const { return (Node::hash() << 3)|(_test._test+1); } |
1159 uint BoolNode::size_of() const { return sizeof(BoolNode); } | 1157 uint BoolNode::size_of() const { return sizeof(BoolNode); } |
1160 | 1158 |