Relates :
|
Vladimir Kozlov wrote: > Compilers also use a lot thread local ResourceArea - > Thread::current()->resource_area() and NEW_RESOURCE_ARRAY() macro. > But thread local area is defined as mtThread: > Thread() is called from CompilerThread() and we can pass a parameter to > indicate user. Or add a virtual method to Thread class to check type of > thread. > > In the past we had compiler local changes to get information how much > memory was used during compilation but it was never get pushed. We > accessed Arena::_bytes_allocated for that. Following email thread for details: http://mail.openjdk.java.net/pipermail/hotspot-dev/2017-September/028360.html