diff options
author | kvn <none@none> | 2012-07-30 09:49:25 -0700 |
---|---|---|
committer | kvn <none@none> | 2012-07-30 09:49:25 -0700 |
commit | 7f9f8adcff572ac452d37e8fa50b6dc3bfebf187 (patch) | |
tree | e9174f0c633257d4c2a6c0dd1227ea0c1454770e /src/share/vm/opto/node.hpp | |
parent | fec39d74addfac0a32705def0669cba43d74508b (diff) |
7187454: stack overflow in C2 compiler thread on Solaris x86
Summary: Added new FormatBufferResource class to use thread's resource area for error message buffer.
Reviewed-by: twisti
Diffstat (limited to 'src/share/vm/opto/node.hpp')
-rw-r--r-- | src/share/vm/opto/node.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/opto/node.hpp b/src/share/vm/opto/node.hpp index 9e5fc69cd..759c0bcd6 100644 --- a/src/share/vm/opto/node.hpp +++ b/src/share/vm/opto/node.hpp @@ -363,7 +363,7 @@ protected: #endif // Reference to the i'th input Node. Error if out of bounds. - Node* in(uint i) const { assert(i < _max, err_msg("oob: i=%d, _max=%d", i, _max)); return _in[i]; } + Node* in(uint i) const { assert(i < _max, err_msg_res("oob: i=%d, _max=%d", i, _max)); return _in[i]; } // Reference to the i'th output Node. Error if out of bounds. // Use this accessor sparingly. We are going trying to use iterators instead. Node* raw_out(uint i) const { assert(i < _outcnt,"oob"); return _out[i]; } @@ -394,7 +394,7 @@ protected: void ins_req( uint i, Node *n ); // Insert a NEW required input void set_req( uint i, Node *n ) { assert( is_not_dead(n), "can not use dead node"); - assert( i < _cnt, err_msg("oob: i=%d, _cnt=%d", i, _cnt)); + assert( i < _cnt, err_msg_res("oob: i=%d, _cnt=%d", i, _cnt)); assert( !VerifyHashTableKeys || _hash_lock == 0, "remove node from hash table before modifying it"); Node** p = &_in[i]; // cache this._in, across the del_out call |