# HG changeset patch # User kvn # Date 1280968940 25200 # Node ID 0e09207fc81b76baa0a447921d28f5db4f854e78 # Parent 0e35fa8ebccd44434a1fff3a1e5c888f6cac1c87 6974682: CTW: assert(target != NULL) failed: must not be null Summary: Add address table size to constant section size. Reviewed-by: never diff -r 0e35fa8ebccd -r 0e09207fc81b src/share/vm/opto/output.cpp --- a/src/share/vm/opto/output.cpp Tue Aug 03 15:55:03 2010 -0700 +++ b/src/share/vm/opto/output.cpp Wed Aug 04 17:42:20 2010 -0700 @@ -382,6 +382,10 @@ if (min_offset_from_last_call == 0) { blk_size += nop_size; } + } else if (mach->ideal_Opcode() == Op_Jump) { + const_size += b->_num_succs; // Address table size + // The size is valid even for 64 bit since it is + // multiplied by 2*jintSize on this method exit. } } min_offset_from_last_call += inst_size;