From 5af9d2a0ac82ad83dc83461e5b8ce793cc995ad3 Mon Sep 17 00:00:00 2001 From: Serguei Spitsyn Date: Thu, 8 Jun 2023 04:04:05 +0000 Subject: [PATCH] 8309602: update JVMTI history table for jdk 21 Reviewed-by: alanb, iris --- src/hotspot/share/prims/jvmti.xml | 78 ++++++++++++++----------------- 1 file changed, 34 insertions(+), 44 deletions(-) diff --git a/src/hotspot/share/prims/jvmti.xml b/src/hotspot/share/prims/jvmti.xml index 92795094a86..d462d4bd1eb 100644 --- a/src/hotspot/share/prims/jvmti.xml +++ b/src/hotspot/share/prims/jvmti.xml @@ -15392,60 +15392,52 @@ typedef void (JNICALL *jvmtiEventVMInit) Support for modules: - - The majorversion is 9 now - - The ClassFileLoadHook events are not sent during the primordial phase anymore. - - Allow CompiledMethodLoad events at start phase - - Add new capabilities: - - can_generate_early_vmstart - - can_generate_early_class_hook_events - - Add new functions: - - GetAllModules - - AddModuleReads, AddModuleExports, AddModuleOpens, AddModuleUses, AddModuleProvides - - IsModifiableModule - Clarified can_redefine_any_classes, can_retransform_any_classes and IsModifiableClass API to - disallow some implementation defined classes. + The majorversion is 9 now. + The ClassFileLoadHook events are not sent during the primordial phase anymore. + Allow CompiledMethodLoad events at start phase. + Add new capabilities: can_generate_early_vmstart, can_generate_early_class_hook_events. + Add new functions: GetAllModules, AddModuleReads, AddModuleExports, + AddModuleOpens, AddModuleUses, AddModuleProvides, IsModifiableModule. + Clarified can_redefine_any_classes, can_retransform_any_classes and + IsModifiableClass API to disallow some implementation defined classes. Minor update for GetCurrentThread function: - - The function may return NULL in the start phase if the - can_generate_early_vmstart capability is enabled. + The function may return NULL in the start phase if the + can_generate_early_vmstart capability is enabled. Minor update for new class file NestHost and NestMembers attributes: - - Specify that RedefineClasses and RetransformClasses are not allowed - to change the class file NestHost and NestMembers attributes. - - Add new error JVMTI_ERROR_UNSUPPORTED_REDEFINITION_CLASS_ATTRIBUTE_CHANGED - that can be returned by RedefineClasses and RetransformClasses. + Specify that RedefineClasses and RetransformClasses are not allowed + to change the class file NestHost and NestMembers attributes; + Add new error JVMTI_ERROR_UNSUPPORTED_REDEFINITION_CLASS_ATTRIBUTE_CHANGED + that can be returned by RedefineClasses and RetransformClasses. Support for Low Overhead Heap Sampling: - - Add new capability: - - can_generate_sampled_object_alloc_events - - Add new function: - - SetHeapSamplingInterval - - Add new event type: - - JVMTI_EVENT_SAMPLED_OBJECT_ALLOC + Add new capability: can_generate_sampled_object_alloc_events. + Add new function: SetHeapSamplingInterval. + Add new event type: JVMTI_EVENT_SAMPLED_OBJECT_ALLOC. Minor spec update for the capability "can_redefine_any_class". - It now says: - "RedefineClasses can be called on any modifiable class. See IsModifiableClass. - (can_redefine_classes must also be set)" + It now says: "RedefineClasses can be called on any modifiable class." + See IsModifiableClass. (can_redefine_classes must also be set) Minor PopFrame spec update: - - The specified thread must be suspended or must be the current thread. - (It was not allowed to be the current thread before.) + The specified thread must be suspended or must be the current thread. + (It was not allowed to be the current thread before.) Minor update for new class file Record attribute: - - Specify that RedefineClasses and RetransformClasses are not allowed - to change the class file Record attribute. + Specify that RedefineClasses and RetransformClasses are not allowed + to change the class file Record attribute. Minor update for new class file PermittedSubclasses attribute: - - Specify that RedefineClasses and RetransformClasses are not allowed - to change the class file PermittedSubclasses attribute. + Specify that RedefineClasses and RetransformClasses are not allowed + to change the class file PermittedSubclasses attribute. Minor clarification in the section "Agent Shutdown" that says the @@ -15456,17 +15448,15 @@ typedef void (JNICALL *jvmtiEventVMInit) Minor update to deprecate Heap functions 1.0. - Support for virtual threads: - - Add new capability: - - can_support_virtual_threads - - Add new functions: - - SuspendAllVirtualThreads - - ResumeAllVirtualThreads - - Add new event types: - - JVMTI_EVENT_VIRTUAL_THREAD_START - - JVMTI_EVENT_VIRTUAL_THREAD_END - - Add new error code: - - JVMTI_ERROR_UNSUPPORTED_OPERATION + Support for virtual threads (Preview): + Add new capability: can_support_virtual_threads. + Add new functions: SuspendAllVirtualThreads, ResumeAllVirtualThreads. + Add new event types: JVMTI_EVENT_VIRTUAL_THREAD_START, JVMTI_EVENT_VIRTUAL_THREAD_END. + Add new error code: JVMTI_ERROR_UNSUPPORTED_OPERATION. + + + Virtual threads finalized to be a permanent feature. + Agent start-up in the live phase now specified to print a warning.