diff src/share/vm/opto/runtime.cpp @ 1216:7f8790caccb0

Merge
author apangin
date Thu, 04 Feb 2010 15:50:59 -0800
parents 6deeaebad47a 87684f1a88b5
children 7b4415a18c8a
line wrap: on
line diff
--- a/src/share/vm/opto/runtime.cpp	Tue Feb 02 11:08:17 2010 -0700
+++ b/src/share/vm/opto/runtime.cpp	Thu Feb 04 15:50:59 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