src/share/vm/c1/c1_ValueMap.hpp

changeset 2634
425688247f3d
parent 2486
403dc4c1d7f5
child 3592
701a83c86f28
     1.1 --- a/src/share/vm/c1/c1_ValueMap.hpp	Sat Mar 05 11:02:04 2011 -0800
     1.2 +++ b/src/share/vm/c1/c1_ValueMap.hpp	Sun Mar 06 22:09:23 2011 -0800
     1.3 @@ -141,7 +141,8 @@
     1.4  
     1.5    // visitor functions
     1.6    void do_StoreField     (StoreField*      x) {
     1.7 -    if (!x->is_initialized()) {
     1.8 +    if (x->is_init_point()) {
     1.9 +      // putstatic is an initialization point so treat it as a wide kill
    1.10        kill_memory();
    1.11      } else {
    1.12        kill_field(x->field());
    1.13 @@ -159,7 +160,8 @@
    1.14    void do_Local          (Local*           x) { /* nothing to do */ }
    1.15    void do_Constant       (Constant*        x) { /* nothing to do */ }
    1.16    void do_LoadField      (LoadField*       x) {
    1.17 -    if (!x->is_initialized()) {
    1.18 +    if (x->is_init_point()) {
    1.19 +      // getstatic is an initialization point so treat it as a wide kill
    1.20        kill_memory();
    1.21      }
    1.22    }

mercurial