jbellis / jamm

Java Agent for Memory Measurements
Apache License 2.0
684 stars 125 forks source link

Illegal reflective access by org.github.jamm.MemoryMeter to field java.util.concurrent.atomic.AtomicReference.value #47

Closed KaliszAd closed 1 year ago

KaliszAd commented 3 years ago

I am using clj-memory-meter and get this:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.github.jamm.MemoryMeter (file:/tmp/jamm1846689842101955943.jar) to field java.util.concurrent.atomic.AtomicReference.value
WARNING: Please consider reporting this to the maintainers of org.github.jamm.MemoryMeter
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

It sounds rather bad, so I figured it would be best to report it even though I can only guess what it means.

blerer commented 1 year ago

Thanks for reporting it. The Jamm is crawling the object tree to measure it using reflection and might in some case trigger this warning. It sounds worst than it is in practice through.