6818666: G1: Type lost in g1 pre-barrier

Reviewed-by: kvn
This commit is contained in:
Tom Rodriguez 2009-06-26 13:03:29 -07:00
parent a9ad90fa87
commit 3bdd70fe18
5 changed files with 36 additions and 21 deletions

View file

@ -1565,7 +1565,7 @@ void Parse::do_one_bytecode() {
c = pop(); // Oop to store
b = pop(); // index (already used)
a = pop(); // the array itself
const Type* elemtype = _gvn.type(a)->is_aryptr()->elem();
const TypeOopPtr* elemtype = _gvn.type(a)->is_aryptr()->elem()->is_oopptr();
const TypeAryPtr* adr_type = TypeAryPtr::OOPS;
Node* store = store_oop_to_array(control(), a, d, adr_type, c, elemtype, T_OBJECT);
break;