equal
deleted
inserted
replaced
345 |
345 |
346 static native int iovMax(); |
346 static native int iovMax(); |
347 |
347 |
348 static native void initIDs(); |
348 static native void initIDs(); |
349 |
349 |
|
350 /** |
|
351 * Used to trigger loading of native libraries |
|
352 */ |
|
353 public static void load() { } |
|
354 |
350 static { |
355 static { |
351 // Note that IOUtil.initIDs is called from within Util.load. |
356 java.security.AccessController.doPrivileged( |
352 Util.load(); |
357 new java.security.PrivilegedAction<Void>() { |
|
358 public Void run() { |
|
359 System.loadLibrary("net"); |
|
360 System.loadLibrary("nio"); |
|
361 return null; |
|
362 } |
|
363 }); |
|
364 |
|
365 initIDs(); |
|
366 |
353 IOV_MAX = iovMax(); |
367 IOV_MAX = iovMax(); |
354 } |
368 } |
355 |
369 |
356 } |
370 } |