src/hotspot/share/oops/accessDecorators.hpp
changeset 51350 57565f7dcb2a
parent 50803 45c1fde86050
child 53075 747d29313e5a
--- a/src/hotspot/share/oops/accessDecorators.hpp	Thu Aug 09 17:11:11 2018 +0200
+++ b/src/hotspot/share/oops/accessDecorators.hpp	Fri Jun 22 16:07:15 2018 +0200
@@ -212,8 +212,15 @@
                                                     ARRAYCOPY_DISJOINT | ARRAYCOPY_ARRAYOF |
                                                     ARRAYCOPY_ATOMIC | ARRAYCOPY_ALIGNED;
 
+// == Resolve barrier decorators ==
+// * ACCESS_READ: Indicate that the resolved object is accessed read-only. This allows the GC
+//   backend to use weaker and more efficient barriers.
+// * ACCESS_WRITE: Indicate that the resolved object is used for write access.
+const DecoratorSet ACCESS_READ                    = UCONST64(1) << 29;
+const DecoratorSet ACCESS_WRITE                   = UCONST64(1) << 30;
+
 // Keep track of the last decorator.
-const DecoratorSet DECORATOR_LAST = UCONST64(1) << 28;
+const DecoratorSet DECORATOR_LAST = UCONST64(1) << 30;
 
 namespace AccessInternal {
   // This class adds implied decorators that follow according to decorator rules.