RETAIN_CLASS_REFERENCE

If we specify the first option enum constant, RETAIN_CLASS_REFERENCE, as an argument to the getInstance() method then the returned instance grants us access to the classes that the individual stack frames reference during the walking.

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.