hotspot/src/share/vm/opto/runtime.cpp
changeset 4892 e977b527544a
parent 4754 8aef16f24e16
child 4898 b5bbb74def0b
equal deleted inserted replaced
4891:7c8755dd5bb2 4892:e977b527544a
     1 /*
     1 /*
     2  * Copyright 1998-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1998-2010 Sun Microsystems, Inc.  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.
   706     // vc->set_receiver_count(empty_row, DataLayout::counter_increment);
   706     // vc->set_receiver_count(empty_row, DataLayout::counter_increment);
   707     int count_off = ReceiverTypeData::receiver_count_cell_index(empty_row);
   707     int count_off = ReceiverTypeData::receiver_count_cell_index(empty_row);
   708     *(mdp + count_off) = DataLayout::counter_increment;
   708     *(mdp + count_off) = DataLayout::counter_increment;
   709   } else {
   709   } else {
   710     // Receiver did not match any saved receiver and there is no empty row for it.
   710     // Receiver did not match any saved receiver and there is no empty row for it.
   711     // Increment total counter to indicate polimorphic case.
   711     // Increment total counter to indicate polymorphic case.
   712     intptr_t* count_p = (intptr_t*)(((byte*)(data)) + in_bytes(CounterData::count_offset()));
   712     intptr_t* count_p = (intptr_t*)(((byte*)(data)) + in_bytes(CounterData::count_offset()));
   713     *count_p += DataLayout::counter_increment;
   713     *count_p += DataLayout::counter_increment;
   714   }
   714   }
   715 JRT_END
   715 JRT_END
   716 
   716