src/hotspot/share/opto/graphKit.cpp
changeset 48595 5d699d81c10c
parent 47216 71c04702a3d5
child 48961 120b61d50f85
child 56095 97689d6b0494
equal deleted inserted replaced
48594:4e4929530412 48595:5d699d81c10c
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  3752   return NULL;
  3752   return NULL;
  3753 }
  3753 }
  3754 
  3754 
  3755 // Trace Allocate -> Proj[Parm] -> Initialize
  3755 // Trace Allocate -> Proj[Parm] -> Initialize
  3756 InitializeNode* AllocateNode::initialization() {
  3756 InitializeNode* AllocateNode::initialization() {
  3757   ProjNode* rawoop = proj_out(AllocateNode::RawAddress);
  3757   ProjNode* rawoop = proj_out_or_null(AllocateNode::RawAddress);
  3758   if (rawoop == NULL)  return NULL;
  3758   if (rawoop == NULL)  return NULL;
  3759   for (DUIterator_Fast imax, i = rawoop->fast_outs(imax); i < imax; i++) {
  3759   for (DUIterator_Fast imax, i = rawoop->fast_outs(imax); i < imax; i++) {
  3760     Node* init = rawoop->fast_out(i);
  3760     Node* init = rawoop->fast_out(i);
  3761     if (init->is_Initialize()) {
  3761     if (init->is_Initialize()) {
  3762       assert(init->as_Initialize()->allocation() == this, "2-way link");
  3762       assert(init->as_Initialize()->allocation() == this, "2-way link");