equal
deleted
inserted
replaced
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 } |