()
| 264 | private static native int setCurrentThreadAffinity0(int cpu); |
| 265 | |
| 266 | private static boolean isJlinkRuntime() { |
| 267 | // Detect jlink-ed runtime by checking if CodeSource uses jrt: protocol |
| 268 | CodeSource codeSource = Os.class.getProtectionDomain().getCodeSource(); |
| 269 | if (codeSource == null) { |
| 270 | return false; |
| 271 | } |
| 272 | URL location = codeSource.getLocation(); |
| 273 | return location != null && "jrt".equals(location.getProtocol()); |
| 274 | } |
| 275 | |
| 276 | @Nullable |
| 277 | public static String getNativeLibsDir(String libName) { |
no test coverage detected