Mercurial > hg > truffle
diff src/share/vm/opto/runtime.cpp @ 1206:87684f1a88b5
6614597: Performance variability in jvm2008 xml.validation
Summary: Fix incorrect marking of methods as not compilable.
Reviewed-by: never
author | kvn |
---|---|
date | Mon, 01 Feb 2010 16:49:49 -0800 |
parents | 7b0e9cba0307 |
children | 7f8790caccb0 576e77447e3c |
line wrap: on
line diff
--- a/src/share/vm/opto/runtime.cpp Mon Feb 01 23:18:47 2010 +0100 +++ b/src/share/vm/opto/runtime.cpp Mon Feb 01 16:49:49 2010 -0800 @@ -706,6 +706,11 @@ // vc->set_receiver_count(empty_row, DataLayout::counter_increment); int count_off = ReceiverTypeData::receiver_count_cell_index(empty_row); *(mdp + count_off) = DataLayout::counter_increment; + } else { + // Receiver did not match any saved receiver and there is no empty row for it. + // Increment total counter to indicate polimorphic case. + intptr_t* count_p = (intptr_t*)(((byte*)(data)) + in_bytes(CounterData::count_offset())); + *count_p += DataLayout::counter_increment; } JRT_END