Can I check whether there's an active ResourceMark?
stefan.karlsson at oracle.com
Mon Sep 9 10:24:03 PDT 2013
On 9/9/13 6:58 PM, Tony Printezis wrote:
> Hi guys,
> (didn't know what list to ask this, starting with GC!)
> Is there a way to check whether there's an active ResourceMark? I have
> a method that requires that the caller (or one of the callers) has set
> up a ResourceMark and I wanted to check for that with an assert. Thanks!
Maybe assert(Thread::current()->current_resource_mark() != NULL, "");
would do what you want?
More information about the hotspot-gc-dev