< prev index next >

src/java.base/share/classes/jdk/internal/misc/X-ScopedMemoryAccess.java.template

Print this page
*** 101,23 ***
       * Scope interface used during scoped memory access operations. A scope can be thought of as an object
       * which embodies the temporal checks associated with a given memory region.
       */
      public interface Scope {
  
-        interface Handle {
-             Scope scope();
-         }
- 
          void checkValidState();
  
          Thread ownerThread();
  
!         boolean isImplicit();
- 
-         Handle acquire();
  
!         void release(Handle handle);
  
          /**
           * Error thrown when memory access fails because the memory has already been released.
           * Note: for performance reasons, this exception is never created by client; instead a shared instance
           * is thrown (sometimes, this instance can be thrown asynchronously inside VM code). For this reason,
--- 101,17 ---
       * Scope interface used during scoped memory access operations. A scope can be thought of as an object
       * which embodies the temporal checks associated with a given memory region.
       */
      public interface Scope {
  
          void checkValidState();
  
          Thread ownerThread();
  
!         void acquire0();
  
!         void release0();
  
          /**
           * Error thrown when memory access fails because the memory has already been released.
           * Note: for performance reasons, this exception is never created by client; instead a shared instance
           * is thrown (sometimes, this instance can be thrown asynchronously inside VM code). For this reason,
< prev index next >