src/share/vm/utilities/accessFlags.hpp

Print this page




 177   // otherwise they are just changing a copy of the flags
 178 
 179   // attribute flags
 180   void set_is_synthetic()              { atomic_set_bits(JVM_ACC_SYNTHETIC);               }
 181 
 182   // Method* flags
 183   void set_monitor_matching()          { atomic_set_bits(JVM_ACC_MONITOR_MATCH);           }
 184   void set_has_monitor_bytecodes()     { atomic_set_bits(JVM_ACC_HAS_MONITOR_BYTECODES);   }
 185   void set_has_loops()                 { atomic_set_bits(JVM_ACC_HAS_LOOPS);               }
 186   void set_loops_flag_init()           { atomic_set_bits(JVM_ACC_LOOPS_FLAG_INIT);         }
 187   void set_not_c1_compilable()         { atomic_set_bits(JVM_ACC_NOT_C1_COMPILABLE);       }
 188   void set_not_c2_compilable()         { atomic_set_bits(JVM_ACC_NOT_C2_COMPILABLE);       }
 189   void set_not_c2_osr_compilable()     { atomic_set_bits(JVM_ACC_NOT_C2_OSR_COMPILABLE);   }
 190   void set_has_linenumber_table()      { atomic_set_bits(JVM_ACC_HAS_LINE_NUMBER_TABLE);   }
 191   void set_has_checked_exceptions()    { atomic_set_bits(JVM_ACC_HAS_CHECKED_EXCEPTIONS);  }
 192   void set_has_jsrs()                  { atomic_set_bits(JVM_ACC_HAS_JSRS);                }
 193   void set_is_old()                    { atomic_set_bits(JVM_ACC_IS_OLD);                  }
 194   void set_is_obsolete()               { atomic_set_bits(JVM_ACC_IS_OBSOLETE);             }
 195   void set_is_prefixed_native()        { atomic_set_bits(JVM_ACC_IS_PREFIXED_NATIVE);      }
 196 



 197   // Klass* flags
 198   void set_has_vanilla_constructor()   { atomic_set_bits(JVM_ACC_HAS_VANILLA_CONSTRUCTOR); }
 199   void set_has_finalizer()             { atomic_set_bits(JVM_ACC_HAS_FINALIZER);           }
 200   void set_has_final_method()          { atomic_set_bits(JVM_ACC_HAS_FINAL_METHOD);        }
 201   void set_is_cloneable()              { atomic_set_bits(JVM_ACC_IS_CLONEABLE);            }
 202   void set_has_miranda_methods()       { atomic_set_bits(JVM_ACC_HAS_MIRANDA_METHODS);     }
 203 
 204  public:
 205   // field flags
 206   void set_is_field_access_watched(const bool value)
 207                                        {
 208                                          if (value) {
 209                                            atomic_set_bits(JVM_ACC_FIELD_ACCESS_WATCHED);
 210                                          } else {
 211                                            atomic_clear_bits(JVM_ACC_FIELD_ACCESS_WATCHED);
 212                                          }
 213                                        }
 214   void set_is_field_modification_watched(const bool value)
 215                                        {
 216                                          if (value) {




 177   // otherwise they are just changing a copy of the flags
 178 
 179   // attribute flags
 180   void set_is_synthetic()              { atomic_set_bits(JVM_ACC_SYNTHETIC);               }
 181 
 182   // Method* flags
 183   void set_monitor_matching()          { atomic_set_bits(JVM_ACC_MONITOR_MATCH);           }
 184   void set_has_monitor_bytecodes()     { atomic_set_bits(JVM_ACC_HAS_MONITOR_BYTECODES);   }
 185   void set_has_loops()                 { atomic_set_bits(JVM_ACC_HAS_LOOPS);               }
 186   void set_loops_flag_init()           { atomic_set_bits(JVM_ACC_LOOPS_FLAG_INIT);         }
 187   void set_not_c1_compilable()         { atomic_set_bits(JVM_ACC_NOT_C1_COMPILABLE);       }
 188   void set_not_c2_compilable()         { atomic_set_bits(JVM_ACC_NOT_C2_COMPILABLE);       }
 189   void set_not_c2_osr_compilable()     { atomic_set_bits(JVM_ACC_NOT_C2_OSR_COMPILABLE);   }
 190   void set_has_linenumber_table()      { atomic_set_bits(JVM_ACC_HAS_LINE_NUMBER_TABLE);   }
 191   void set_has_checked_exceptions()    { atomic_set_bits(JVM_ACC_HAS_CHECKED_EXCEPTIONS);  }
 192   void set_has_jsrs()                  { atomic_set_bits(JVM_ACC_HAS_JSRS);                }
 193   void set_is_old()                    { atomic_set_bits(JVM_ACC_IS_OLD);                  }
 194   void set_is_obsolete()               { atomic_set_bits(JVM_ACC_IS_OBSOLETE);             }
 195   void set_is_prefixed_native()        { atomic_set_bits(JVM_ACC_IS_PREFIXED_NATIVE);      }
 196 
 197   void clear_not_c1_compilable()       { atomic_clear_bits(JVM_ACC_NOT_C1_COMPILABLE);       }
 198   void clear_not_c2_compilable()       { atomic_clear_bits(JVM_ACC_NOT_C2_COMPILABLE);       }
 199   void clear_not_c2_osr_compilable()   { atomic_clear_bits(JVM_ACC_NOT_C2_OSR_COMPILABLE);   }
 200   // Klass* flags
 201   void set_has_vanilla_constructor()   { atomic_set_bits(JVM_ACC_HAS_VANILLA_CONSTRUCTOR); }
 202   void set_has_finalizer()             { atomic_set_bits(JVM_ACC_HAS_FINALIZER);           }
 203   void set_has_final_method()          { atomic_set_bits(JVM_ACC_HAS_FINAL_METHOD);        }
 204   void set_is_cloneable()              { atomic_set_bits(JVM_ACC_IS_CLONEABLE);            }
 205   void set_has_miranda_methods()       { atomic_set_bits(JVM_ACC_HAS_MIRANDA_METHODS);     }
 206 
 207  public:
 208   // field flags
 209   void set_is_field_access_watched(const bool value)
 210                                        {
 211                                          if (value) {
 212                                            atomic_set_bits(JVM_ACC_FIELD_ACCESS_WATCHED);
 213                                          } else {
 214                                            atomic_clear_bits(JVM_ACC_FIELD_ACCESS_WATCHED);
 215                                          }
 216                                        }
 217   void set_is_field_modification_watched(const bool value)
 218                                        {
 219                                          if (value) {