Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pass result of Unsafe.staticFieldBase() instead of Lookup.class to conform with specification for Unsafe.getObject() requirements. The specification requires the arguments for Unsafe.getObject() to be obtained from Unsafe.staticFieldBase() and Unsafe.staticFieldOffset(). * avoid calling Unsafe.getObject() via reflection, because passing result of Unsafe.staticFieldBase() via reflection might cause problems if it is not real java object. Fixes #1672
- Loading branch information