On Thu, 7 Jul 2022 15:12:49 GMT, Coleen Phillimore <cole...@openjdk.org> wrote:

>> src/hotspot/share/prims/forte.hpp line 32:
>> 
>>> 30: class Forte : AllStatic {
>>> 31:  public:
>>> 32:    static bool is_enabled() NOT_JVMTI_RETURN_(false);
>> 
>> I don't think the rest of this forte code is disabled by JVMTI.
>
> If the answer to whether it's enabled is something you want to be fast, and 
> doesn't change, maybe make it check a variable?

The code in the `Forte` class, as well as the non-trivial of 
`AsyncGetCallTrace()` in forte.cpp, are inside `#if INCLUDE_JVMTI`. That's why 
I use `NOT_JVMTI_RETURN_` for the new function.

-------------

PR: https://git.openjdk.org/jdk/pull/9386

Reply via email to