jdk/src/java.base/share/classes/sun/net/ResourceManager.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
    51     private static final int DEFAULT_MAX_SOCKETS = 25;
    51     private static final int DEFAULT_MAX_SOCKETS = 25;
    52     private static final int maxSockets;
    52     private static final int maxSockets;
    53     private static final AtomicInteger numSockets;
    53     private static final AtomicInteger numSockets;
    54 
    54 
    55     static {
    55     static {
    56         String prop =
    56         String prop = GetPropertyAction
    57                 GetPropertyAction.getProperty("sun.net.maxDatagramSockets");
    57                 .privilegedGetProperty("sun.net.maxDatagramSockets");
    58         int defmax = DEFAULT_MAX_SOCKETS;
    58         int defmax = DEFAULT_MAX_SOCKETS;
    59         try {
    59         try {
    60             if (prop != null) {
    60             if (prop != null) {
    61                 defmax = Integer.parseInt(prop);
    61                 defmax = Integer.parseInt(prop);
    62             }
    62             }