src/hotspot/share/opto/buildOopMap.cpp
changeset 49026 844bf1deff1a
parent 47216 71c04702a3d5
child 58527 f9cc0141574c
equal deleted inserted replaced
49025:7f5463dd3938 49026:844bf1deff1a
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 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.
   616 
   616 
   617     // If this block has a visited predecessor AND that predecessor has this
   617     // If this block has a visited predecessor AND that predecessor has this
   618     // last block as his only undone child, we can move the OopFlow from the
   618     // last block as his only undone child, we can move the OopFlow from the
   619     // pred to this block.  Otherwise we have to grab a new OopFlow.
   619     // pred to this block.  Otherwise we have to grab a new OopFlow.
   620     OopFlow *flow = NULL;       // Flag for finding optimized flow
   620     OopFlow *flow = NULL;       // Flag for finding optimized flow
   621     Block *pred = (Block*)0xdeadbeef;
   621     Block *pred = (Block*)((intptr_t)0xdeadbeef);
   622     // Scan this block's preds to find a done predecessor
   622     // Scan this block's preds to find a done predecessor
   623     for (uint j = 1; j < b->num_preds(); j++) {
   623     for (uint j = 1; j < b->num_preds(); j++) {
   624       Block* p = _cfg->get_block_for_node(b->pred(j));
   624       Block* p = _cfg->get_block_for_node(b->pred(j));
   625       OopFlow *p_flow = flows[p->_pre_order];
   625       OopFlow *p_flow = flows[p->_pre_order];
   626       if( p_flow ) {            // Predecessor is done
   626       if( p_flow ) {            // Predecessor is done