Mercurial > hg > graal-compiler
comparison src/share/vm/opto/matcher.cpp @ 823:14367225a853
6841800: Incorrect boundary values behavior for option -XX:MaxLabelRootDepth=0-6 leads to jvm crash
Summary: MaxLabelRootDepth value less then 10 is invalid.
Reviewed-by: never
author | kvn |
---|---|
date | Wed, 24 Jun 2009 12:00:51 -0700 |
parents | 04fa5affa478 |
children | fc4be448891f |
comparison
equal
deleted
inserted
replaced
822:e306d7c7222c | 823:14367225a853 |
---|---|
139 #endif | 139 #endif |
140 | 140 |
141 | 141 |
142 //---------------------------match--------------------------------------------- | 142 //---------------------------match--------------------------------------------- |
143 void Matcher::match( ) { | 143 void Matcher::match( ) { |
144 if( MaxLabelRootDepth < 100 ) { // Too small? | |
145 assert(false, "invalid MaxLabelRootDepth, increase it to 100 minimum"); | |
146 MaxLabelRootDepth = 100; | |
147 } | |
144 // One-time initialization of some register masks. | 148 // One-time initialization of some register masks. |
145 init_spill_mask( C->root()->in(1) ); | 149 init_spill_mask( C->root()->in(1) ); |
146 _return_addr_mask = return_addr(); | 150 _return_addr_mask = return_addr(); |
147 #ifdef _LP64 | 151 #ifdef _LP64 |
148 // Pointers take 2 slots in 64-bit land | 152 // Pointers take 2 slots in 64-bit land |