()
| 330 | return java.security.AccessController.doPrivileged(new java.security.PrivilegedExceptionAction<sun.misc.Unsafe>() { |
| 331 | |
| 332 | public sun.misc.Unsafe run() throws Exception { |
| 333 | Class<sun.misc.Unsafe> k = sun.misc.Unsafe.class; |
| 334 | for (java.lang.reflect.Field f : k.getDeclaredFields()) { |
| 335 | f.setAccessible(true); |
| 336 | Object x = f.get(null); |
| 337 | if (k.isInstance(x)) return k.cast(x); |
| 338 | } |
| 339 | throw new NoSuchFieldError("the Unsafe"); |
| 340 | } |
| 341 | }); |
| 342 | } catch (java.security.PrivilegedActionException e) { |
| 343 | throw new RuntimeException("Could not initialize intrinsics", e.getCause()); |
nothing calls this directly
no test coverage detected