< prev index next >

src/hotspot/share/utilities/accessFlags.hpp

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.
--- 1,7 ---
  /*
!  * Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.

*** 86,11 ***
    // Note that the class-related ACC_ANNOTATION bit conflicts with these flags.
    JVM_ACC_FIELD_ACCESS_WATCHED            = 0x00002000, // field access is watched by JVMTI
    JVM_ACC_FIELD_MODIFICATION_WATCHED      = 0x00008000, // field modification is watched by JVMTI
    JVM_ACC_FIELD_INTERNAL                  = 0x00000400, // internal field, same as JVM_ACC_ABSTRACT
    JVM_ACC_FIELD_STABLE                    = 0x00000020, // @Stable field, same as JVM_ACC_SYNCHRONIZED and JVM_ACC_SUPER
!   JVM_ACC_FIELD_INITIALIZED_FINAL_UPDATE  = 0x00000100, // (static) final field updated outside (class) initializer, same as JVM_ACC_NATIVE
    JVM_ACC_FIELD_HAS_GENERIC_SIGNATURE     = 0x00000800, // field has generic signature
  
    JVM_ACC_FIELD_INTERNAL_FLAGS       = JVM_ACC_FIELD_ACCESS_WATCHED |
                                         JVM_ACC_FIELD_MODIFICATION_WATCHED |
                                         JVM_ACC_FIELD_INTERNAL |
--- 86,11 ---
    // Note that the class-related ACC_ANNOTATION bit conflicts with these flags.
    JVM_ACC_FIELD_ACCESS_WATCHED            = 0x00002000, // field access is watched by JVMTI
    JVM_ACC_FIELD_MODIFICATION_WATCHED      = 0x00008000, // field modification is watched by JVMTI
    JVM_ACC_FIELD_INTERNAL                  = 0x00000400, // internal field, same as JVM_ACC_ABSTRACT
    JVM_ACC_FIELD_STABLE                    = 0x00000020, // @Stable field, same as JVM_ACC_SYNCHRONIZED and JVM_ACC_SUPER
!   JVM_ACC_FIELD_INITIALIZED_FINAL_UPDATE  = 0x00000200, // (static) final field updated outside (class) initializer, same as JVM_ACC_NATIVE
    JVM_ACC_FIELD_HAS_GENERIC_SIGNATURE     = 0x00000800, // field has generic signature
  
    JVM_ACC_FIELD_INTERNAL_FLAGS       = JVM_ACC_FIELD_ACCESS_WATCHED |
                                         JVM_ACC_FIELD_MODIFICATION_WATCHED |
                                         JVM_ACC_FIELD_INTERNAL |

*** 123,10 ***
--- 123,14 ---
    bool is_volatile    () const         { return (_flags & JVM_ACC_VOLATILE    ) != 0; }
    bool is_transient   () const         { return (_flags & JVM_ACC_TRANSIENT   ) != 0; }
    bool is_native      () const         { return (_flags & JVM_ACC_NATIVE      ) != 0; }
    bool is_interface   () const         { return (_flags & JVM_ACC_INTERFACE   ) != 0; }
    bool is_abstract    () const         { return (_flags & JVM_ACC_ABSTRACT    ) != 0; }
+   bool is_value_class () const         { return (_flags & JVM_ACC_VALUE       ) != 0; }
+   bool is_primitive_class () const     { return (_flags & JVM_ACC_PRIMITIVE   ) != 0; }
+   bool is_identity_class  () const     { return (_flags & JVM_ACC_IDENTITY    ) != 0; }
+   bool is_permits_value_class () const { return (_flags & JVM_ACC_PERMITS_VALUE   ) != 0; }
  
    // Attribute flags
    bool is_synthetic   () const         { return (_flags & JVM_ACC_SYNTHETIC   ) != 0; }
  
    // Method* flags
< prev index next >