mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
6896352: CTW fails hotspot/src/share/vm/opto/escape.cpp:1155
Always call C->get_alias_index(phase->type(address)) during parsing. Reviewed-by: never
This commit is contained in:
parent
9c1321eed3
commit
c5744bd138
2 changed files with 10 additions and 2 deletions
|
@ -255,6 +255,13 @@ Node *MemNode::Ideal_common(PhaseGVN *phase, bool can_reshape) {
|
|||
return NodeSentinel; // caller will return NULL
|
||||
}
|
||||
|
||||
// Do NOT remove or optimize the next lines: ensure a new alias index
|
||||
// is allocated for an oop pointer type before Escape Analysis.
|
||||
// Note: C++ will not remove it since the call has side effect.
|
||||
if ( t_adr->isa_oopptr() ) {
|
||||
int alias_idx = phase->C->get_alias_index(t_adr->is_ptr());
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
Node* base = NULL;
|
||||
if (address->is_AddP())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue