jdk/src/java.base/unix/classes/java/lang/ProcessImpl.java
changeset 37781 71ed5645f17c
parent 37593 824750ada3d6
child 39061 0a7abfc4f4b0
equal deleted inserted replaced
37780:06f3783b338f 37781:71ed5645f17c
   123                     throw new AssertionError("Unsupported platform: " + this);
   123                     throw new AssertionError("Unsupported platform: " + this);
   124             }
   124             }
   125         }
   125         }
   126 
   126 
   127         String helperPath() {
   127         String helperPath() {
   128             Properties props = GetPropertyAction.getProperties();
   128             Properties props = GetPropertyAction.privilegedGetProperties();
   129             return helperPath(props.getProperty("java.home"),
   129             return helperPath(props.getProperty("java.home"),
   130                               props.getProperty("os.arch"));
   130                               props.getProperty("os.arch"));
   131         }
   131         }
   132 
   132 
   133         LaunchMechanism launchMechanism() {
   133         LaunchMechanism launchMechanism() {
   157                 }
   157                 }
   158             );
   158             );
   159         }
   159         }
   160 
   160 
   161         static Platform get() {
   161         static Platform get() {
   162             String osName = GetPropertyAction.getProperty("os.name");
   162             String osName = GetPropertyAction.privilegedGetProperty("os.name");
   163 
   163 
   164             if (osName.equals("Linux")) { return LINUX; }
   164             if (osName.equals("Linux")) { return LINUX; }
   165             if (osName.contains("OS X")) { return BSD; }
   165             if (osName.contains("OS X")) { return BSD; }
   166             if (osName.equals("SunOS")) { return SOLARIS; }
   166             if (osName.equals("SunOS")) { return SOLARIS; }
   167             if (osName.equals("AIX")) { return AIX; }
   167             if (osName.equals("AIX")) { return AIX; }