[9] RFR(XS): 8176513 Poor code quality for ByteBuffers

Roland Westrelin rwestrel at redhat.com
Wed Mar 15 15:34:29 UTC 2017


> I think alias_type->adr_type() should be used instead, because 
> adr_type->isa_aryptr() is true for pointers into array header as well, 
> but we care about array body here. Alias analysis should flatten them to 
> InstPtr.

Aren't those forbidden anyway?

  if (alias_type->adr_type() == TypeInstPtr::KLASS ||
      alias_type->adr_type() == TypeAryPtr::RANGE) {
    return false; // not supported
  }

Roland.


More information about the hotspot-compiler-dev mailing list