mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 11:34:38 +02:00
6885584: A particular class structure causes large allocation spike for jit
Reviewed-by: kvn
This commit is contained in:
parent
ba951dbf36
commit
9b306d03ee
4 changed files with 85 additions and 15 deletions
|
@ -1502,7 +1502,7 @@ Node *PhaseCCP::transform_once( Node *n ) {
|
|||
//---------------------------------saturate------------------------------------
|
||||
const Type* PhaseCCP::saturate(const Type* new_type, const Type* old_type,
|
||||
const Type* limit_type) const {
|
||||
const Type* wide_type = new_type->widen(old_type);
|
||||
const Type* wide_type = new_type->widen(old_type, limit_type);
|
||||
if (wide_type != new_type) { // did we widen?
|
||||
// If so, we may have widened beyond the limit type. Clip it back down.
|
||||
new_type = wide_type->filter(limit_type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue