United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6621084 ciMethodBlocks::split_block_at is broken for methods with exception handler
6621084 : ciMethodBlocks::split_block_at is broken for methods with exception handler

Details
Type:
Bug
Submit Date:
2007-10-24
Status:
Closed
Updated Date:
2011-04-20
Project Name:
JDK
Resolved Date:
2011-04-20
Component:
hotspot
OS:
solaris_9
Sub-Component:
compiler
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs12

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
Investigation EA failure in CTW I found
the the next function is incorrect for bytecode
with exceptions. It incorrectly splits an exception
handler block.


  // ciMethodBlocks::split_block_at
  //
  // Split the block spanning bci into two separate ranges.  The former
  // block becomes the second half and a new range is created for the
  // first half.  Returns the range beginning at bci.
  ciBlock *ciMethodBlocks::split_block_at(int bci) {

                                    

Comments
SUGGESTED FIX

Move an exception information from old block
to new block and cleaning it in old handler block.
                                     
2007-10-24
EVALUATION

When handler block is split new block 
has exception handler BCI but does have 
exception information (start & end exception BCIs). 
The old block has exception information but 
it starts in an other BCI.
                                     
2007-10-24



Hardware and Software, Engineered to Work Together