diff a/src/hotspot/share/prims/jvmtiManageCapabilities.hpp b/src/hotspot/share/prims/jvmtiManageCapabilities.hpp --- a/src/hotspot/share/prims/jvmtiManageCapabilities.hpp +++ b/src/hotspot/share/prims/jvmtiManageCapabilities.hpp @@ -1,7 +1,7 @@ /* - * Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2026, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. @@ -49,10 +49,13 @@ static jvmtiCapabilities acquired_capabilities; // counter for the agents possess can_support_virtual_threads capability static int _can_support_virtual_threads_count; + // counter for the agents possess can_support_value_objects capability + static int _can_support_value_objects_count; + // lock to access the class data static Mutex* _capabilities_lock; // lock, unless called from a detached thread (e.g. can be a call from Agent_OnLoad) class CapabilitiesMutexLocker: public ConditionalMutexLocker {