Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow SDK to run in environments prohibiting use of sun.misc.Unsafe
Some applications run under strict java.security permissions which do not allow access to sun.misc.Unsafe. BatchSpanProcessor uses Unsafe via jctools, but has a fallback to ArrayBlockingQueue. Extending that fallback rule to cover java security exceptions as well. Since the entire java security manager is marked for deprecation in future java versions, I went with string-matching on the root cause message, which removes deprecation warnings when building with never java but still does the job in those versions which use java.security policies.
- Loading branch information