jdk/src/java.base/share/classes/sun/nio/ch/FileChannelImpl.java
changeset 37593 824750ada3d6
parent 35641 da165fd9c886
child 37781 71ed5645f17c
equal deleted inserted replaced
37592:c80f098887f4 37593:824750ada3d6
  1017     // the same file. This property is used to get 1.4/5.0 behavior if desired.
  1017     // the same file. This property is used to get 1.4/5.0 behavior if desired.
  1018     private static boolean isSharedFileLockTable() {
  1018     private static boolean isSharedFileLockTable() {
  1019         if (!propertyChecked) {
  1019         if (!propertyChecked) {
  1020             synchronized (FileChannelImpl.class) {
  1020             synchronized (FileChannelImpl.class) {
  1021                 if (!propertyChecked) {
  1021                 if (!propertyChecked) {
  1022                     String value = AccessController.doPrivileged(
  1022                     String value = GetPropertyAction.getProperty(
  1023                         new GetPropertyAction(
  1023                             "sun.nio.ch.disableSystemWideOverlappingFileLockCheck");
  1024                             "sun.nio.ch.disableSystemWideOverlappingFileLockCheck"));
       
  1025                     isSharedFileLockTable = ((value == null) || value.equals("false"));
  1024                     isSharedFileLockTable = ((value == null) || value.equals("false"));
  1026                     propertyChecked = true;
  1025                     propertyChecked = true;
  1027                 }
  1026                 }
  1028             }
  1027             }
  1029         }
  1028         }