359 // cases: |
359 // cases: |
360 // can_be_constant = (oop not scavengable || ScavengeRootsInCode != 0) |
360 // can_be_constant = (oop not scavengable || ScavengeRootsInCode != 0) |
361 // should_be_constant = (oop not scavengable || ScavengeRootsInCode >= 2) |
361 // should_be_constant = (oop not scavengable || ScavengeRootsInCode >= 2) |
362 // An oop is not scavengable if it is in the perm gen. |
362 // An oop is not scavengable if it is in the perm gen. |
363 if (stable_type != NULL && con_type != NULL && con_type->isa_oopptr()) |
363 if (stable_type != NULL && con_type != NULL && con_type->isa_oopptr()) |
364 con_type = con_type->join(stable_type); |
364 con_type = con_type->join_speculative(stable_type); |
365 break; |
365 break; |
366 |
366 |
367 case T_ILLEGAL: |
367 case T_ILLEGAL: |
368 // Invalid ciConstant returned due to OutOfMemoryError in the CI |
368 // Invalid ciConstant returned due to OutOfMemoryError in the CI |
369 assert(C->env()->failing(), "otherwise should not see this"); |
369 assert(C->env()->failing(), "otherwise should not see this"); |