< prev index next >

test/micro/org/openjdk/bench/vm/compiler/PostAllocationStores.java

Print this page

 78         long longField1;
 79 
 80         public TestWithNullStores() {
 81             objectField1 = null;
 82             objectField2 = null;
 83             objectField3 = null;
 84             intField1 = 0;
 85             intField2 = 0;
 86             longField1 = 0L;
 87         }
 88     }
 89 
 90     static class TestWithNonNullStores {
 91         Object objectField1;
 92         Object objectField2;
 93         Object objectField3;
 94         int intField1;
 95         int intField2;
 96         long longField1;
 97 

 98         public TestWithNonNullStores() {
 99             objectField1 = this;
100             objectField2 = this;
101             objectField3 = this;
102             intField1 = 4;
103             intField2 = 7;
104             longField1 = 2L;
105         }
106     }
107 
108     static class TestWithNullVolatileStores {
109         volatile Object objectField1;
110         volatile Object objectField2;
111         volatile Object objectField3;
112         volatile int intField1;
113         volatile int intField2;
114         volatile long longField1;
115 
116         public TestWithNullVolatileStores() {
117             objectField1 = null;

 78         long longField1;
 79 
 80         public TestWithNullStores() {
 81             objectField1 = null;
 82             objectField2 = null;
 83             objectField3 = null;
 84             intField1 = 0;
 85             intField2 = 0;
 86             longField1 = 0L;
 87         }
 88     }
 89 
 90     static class TestWithNonNullStores {
 91         Object objectField1;
 92         Object objectField2;
 93         Object objectField3;
 94         int intField1;
 95         int intField2;
 96         long longField1;
 97 
 98         @SuppressWarnings("initialization")
 99         public TestWithNonNullStores() {
100             objectField1 = this;
101             objectField2 = this;
102             objectField3 = this;
103             intField1 = 4;
104             intField2 = 7;
105             longField1 = 2L;
106         }
107     }
108 
109     static class TestWithNullVolatileStores {
110         volatile Object objectField1;
111         volatile Object objectField2;
112         volatile Object objectField3;
113         volatile int intField1;
114         volatile int intField2;
115         volatile long longField1;
116 
117         public TestWithNullVolatileStores() {
118             objectField1 = null;
< prev index next >