< prev index next >

src/hotspot/share/oops/instanceKlassMiscStatus.hpp

Print this page
@@ -43,11 +43,22 @@
      flag(shared_loading_failed              , 1 << 8) /* class has been loaded from shared archive */ \
      flag(is_scratch_class                   , 1 << 9) /* class is the redefined scratch class */ \
      flag(is_shared_boot_class               , 1 << 10) /* defining class loader is boot class loader */ \
      flag(is_shared_platform_class           , 1 << 11) /* defining class loader is platform class loader */ \
      flag(is_shared_app_class                , 1 << 12) /* defining class loader is app class loader */ \
-     flag(has_contended_annotations          , 1 << 13) /* has @Contended annotation */
+     flag(has_contended_annotations          , 1 << 13) /* has @Contended annotation */ \
+     flag(has_inline_type_fields             , 1 << 14) /* has inline fields and related embedded section is not empty */ \
+     flag(is_empty_inline_type               , 1 << 15) /* empty inline type (*) */ \
+     flag(is_naturally_atomic                , 1 << 16) /* loaded/stored in one instruction */ \
+     flag(is_declared_atomic                 , 1 << 17) /* Listed -XX:ForceNonTearable=clist option */ \
+     flag(carries_value_modifier             , 1 << 18) /* the class or one of its super types has the ACC_VALUE modifier */ \
+     flag(carries_identity_modifier          , 1 << 19) /* the class or one of its super types has the ACC_IDENTITY modifier */
+ 
+   /* (*) An inline type is considered empty if it contains no non-static fields or
+      if it contains only empty inline fields. Note that JITs have a slightly different
+      definition: empty inline fields must be flattened otherwise the container won't
+      be considered empty */
  
  #define IK_FLAGS_ENUM_NAME(name, value)    _misc_##name = value,
    enum {
      IK_FLAGS_DO(IK_FLAGS_ENUM_NAME)
    };

@@ -56,11 +67,11 @@
    u2 shared_loader_type_bits() const {
      return _misc_is_shared_boot_class|_misc_is_shared_platform_class|_misc_is_shared_app_class;
    }
  
    // These flags are write-once before the class is published and then read-only so don't require atomic updates.
-   u2 _flags;
+   u4 _flags;
  
   public:
  
    InstanceKlassMiscStatus() : _flags(0) {}
  

@@ -83,8 +94,14 @@
    }
  
    void set_shared_class_loader_type(s2 loader_type);
  
    void assign_class_loader_type(const ClassLoaderData* cld);
+ 
+   u4 flags() const { return _flags; }
+ 
+   static u4 is_empty_inline_type_value() {
+     return _misc_is_empty_inline_type;
+   }
  };
  
  #endif // SHARE_OOPS_INSTANCEKLASSMISCSTATUS_HPP
< prev index next >