hotspot/src/share/vm/prims/jvmti.xml
changeset 44520 0553e129e0ec
parent 43952 8c42125f77c4
child 44993 f61bcd80ec1f
equal deleted inserted replaced
44471:7e8e5ceecf99 44520:0553e129e0ec
  6514     </function>
  6514     </function>
  6515 
  6515 
  6516     <function id="GetNamedModule" num="40" since="9">
  6516     <function id="GetNamedModule" num="40" since="9">
  6517       <synopsis>Get Named Module</synopsis>
  6517       <synopsis>Get Named Module</synopsis>
  6518       <description>
  6518       <description>
  6519         Return the <code>java.lang.reflect.Module</code> object for a named
  6519         Return the <code>java.lang.Module</code> object for a named
  6520         module defined to a class loader that contains a given package.
  6520         module defined to a class loader that contains a given package.
  6521         The module is returned via <code>module_ptr</code>.
  6521         The module is returned via <code>module_ptr</code>.
  6522         <p/>
  6522         <p/>
  6523         If a named module is defined to the class loader and it
  6523         If a named module is defined to the class loader and it
  6524         contains the package then that named module is returned,
  6524         contains the package then that named module is returned,
  6552           </description>
  6552           </description>
  6553         </param>
  6553         </param>
  6554         <param id="module_ptr">
  6554         <param id="module_ptr">
  6555           <outptr><jobject/></outptr>
  6555           <outptr><jobject/></outptr>
  6556           <description>
  6556           <description>
  6557             On return, points to a <code>java.lang.reflect.Module</code> object
  6557             On return, points to a <code>java.lang.Module</code> object
  6558             or points to <code>NULL</code>.
  6558             or points to <code>NULL</code>.
  6559           </description>
  6559           </description>
  6560         </param>
  6560         </param>
  6561       </parameters>
  6561       </parameters>
  6562       <errors>
  6562       <errors>
  6596         <error id="JVMTI_ERROR_INVALID_MODULE">
  6596         <error id="JVMTI_ERROR_INVALID_MODULE">
  6597           If <paramlink id="module"></paramlink> is not a module object.
  6597           If <paramlink id="module"></paramlink> is not a module object.
  6598         </error>
  6598         </error>
  6599         <error id="JVMTI_ERROR_INVALID_MODULE">
  6599         <error id="JVMTI_ERROR_INVALID_MODULE">
  6600           If <paramlink id="to_module"></paramlink> is not a module object.
  6600           If <paramlink id="to_module"></paramlink> is not a module object.
       
  6601         </error>
       
  6602         <error id="JVMTI_ERROR_UNMODIFIABLE_MODULE">
       
  6603           if the module cannot be modified.
       
  6604           See <functionlink id="IsModifiableModule"/>.
  6601         </error>
  6605         </error>
  6602       </errors>
  6606       </errors>
  6603     </function>
  6607     </function>
  6604 
  6608 
  6605     <function id="AddModuleExports" num="95" since="9">
  6609     <function id="AddModuleExports" num="95" since="9">
  6631         <param id="to_module">
  6635         <param id="to_module">
  6632           <ptrtype><jobject/></ptrtype>
  6636           <ptrtype><jobject/></ptrtype>
  6633           <description>
  6637           <description>
  6634             The module the package is exported to.
  6638             The module the package is exported to.
  6635             If the <code>to_module</code> is not a subclass of
  6639             If the <code>to_module</code> is not a subclass of
  6636             <code>java.lang.reflect.Module</code> this function returns
  6640             <code>java.lang.Module</code> this function returns
  6637             <errorlink id="JVMTI_ERROR_INVALID_MODULE"></errorlink>.
  6641             <errorlink id="JVMTI_ERROR_INVALID_MODULE"></errorlink>.
  6638           </description>
  6642           </description>
  6639         </param>
  6643         </param>
  6640       </parameters>
  6644       </parameters>
  6641       <errors>
  6645       <errors>
  6646           If <paramlink id="to_modules"></paramlink> is not a module object.
  6650           If <paramlink id="to_modules"></paramlink> is not a module object.
  6647         </error>
  6651         </error>
  6648         <error id="JVMTI_ERROR_ILLEGAL_ARGUMENT">
  6652         <error id="JVMTI_ERROR_ILLEGAL_ARGUMENT">
  6649           If the package <paramlink id="pkg_name"></paramlink>
  6653           If the package <paramlink id="pkg_name"></paramlink>
  6650           does not belong to the module.
  6654           does not belong to the module.
       
  6655         </error>
       
  6656         <error id="JVMTI_ERROR_UNMODIFIABLE_MODULE">
       
  6657           if the module cannot be modified.
       
  6658           See <functionlink id="IsModifiableModule"/>.
  6651         </error>
  6659         </error>
  6652       </errors>
  6660       </errors>
  6653     </function>
  6661     </function>
  6654 
  6662 
  6655     <function id="AddModuleOpens" num="96" since="9">
  6663     <function id="AddModuleOpens" num="96" since="9">
  6682         <param id="to_module">
  6690         <param id="to_module">
  6683           <ptrtype><jobject/></ptrtype>
  6691           <ptrtype><jobject/></ptrtype>
  6684           <description>
  6692           <description>
  6685             The module with the package to open.
  6693             The module with the package to open.
  6686             If the <code>to_module</code> is not a subclass of
  6694             If the <code>to_module</code> is not a subclass of
  6687             <code>java.lang.reflect.Module</code> this function returns
  6695             <code>java.lang.Module</code> this function returns
  6688             <errorlink id="JVMTI_ERROR_INVALID_MODULE"></errorlink>.
  6696             <errorlink id="JVMTI_ERROR_INVALID_MODULE"></errorlink>.
  6689           </description>
  6697           </description>
  6690         </param>
  6698         </param>
  6691       </parameters>
  6699       </parameters>
  6692       <errors>
  6700       <errors>
  6697           If <paramlink id="to_modules"></paramlink> is not a module object.
  6705           If <paramlink id="to_modules"></paramlink> is not a module object.
  6698         </error>
  6706         </error>
  6699         <error id="JVMTI_ERROR_ILLEGAL_ARGUMENT">
  6707         <error id="JVMTI_ERROR_ILLEGAL_ARGUMENT">
  6700           If the package <paramlink id="pkg_name"></paramlink>
  6708           If the package <paramlink id="pkg_name"></paramlink>
  6701           does not belong to the module.
  6709           does not belong to the module.
       
  6710         </error>
       
  6711         <error id="JVMTI_ERROR_UNMODIFIABLE_MODULE">
       
  6712           if the module cannot be modified.
       
  6713           See <functionlink id="IsModifiableModule"/>.
  6702         </error>
  6714         </error>
  6703       </errors>
  6715       </errors>
  6704     </function>
  6716     </function>
  6705 
  6717 
  6706     <function id="AddModuleUses" num="97" since="9">
  6718     <function id="AddModuleUses" num="97" since="9">
  6734         <error id="JVMTI_ERROR_INVALID_MODULE">
  6746         <error id="JVMTI_ERROR_INVALID_MODULE">
  6735           If <paramlink id="module"></paramlink> is not a module object.
  6747           If <paramlink id="module"></paramlink> is not a module object.
  6736         </error>
  6748         </error>
  6737         <error id="JVMTI_ERROR_INVALID_CLASS">
  6749         <error id="JVMTI_ERROR_INVALID_CLASS">
  6738           If <paramlink id="service"></paramlink> is not a class object.
  6750           If <paramlink id="service"></paramlink> is not a class object.
       
  6751         </error>
       
  6752         <error id="JVMTI_ERROR_UNMODIFIABLE_MODULE">
       
  6753           if the module cannot be modified.
       
  6754           See <functionlink id="IsModifiableModule"/>.
  6739         </error>
  6755         </error>
  6740       </errors>
  6756       </errors>
  6741     </function>
  6757     </function>
  6742 
  6758 
  6743     <function id="AddModuleProvides" num="98" since="9">
  6759     <function id="AddModuleProvides" num="98" since="9">
  6780         <error id="JVMTI_ERROR_INVALID_CLASS">
  6796         <error id="JVMTI_ERROR_INVALID_CLASS">
  6781           If <paramlink id="service"></paramlink> is not a class object.
  6797           If <paramlink id="service"></paramlink> is not a class object.
  6782         </error>
  6798         </error>
  6783         <error id="JVMTI_ERROR_INVALID_CLASS">
  6799         <error id="JVMTI_ERROR_INVALID_CLASS">
  6784           If <paramlink id="impl_class"></paramlink> is not a class object.
  6800           If <paramlink id="impl_class"></paramlink> is not a class object.
       
  6801         </error>
       
  6802         <error id="JVMTI_ERROR_UNMODIFIABLE_MODULE">
       
  6803           if the module cannot be modified.
       
  6804           See <functionlink id="IsModifiableModule"/>.
       
  6805         </error>
       
  6806       </errors>
       
  6807     </function>
       
  6808 
       
  6809     <function id="IsModifiableModule" num="99" since="9">
       
  6810       <synopsis>Is Modifiable Module</synopsis>
       
  6811       <description>
       
  6812         Determines whether a module is modifiable.
       
  6813         If a module is modifiable then this module can be updated with
       
  6814         <functionlink id="AddModuleReads"/>, <functionlink id="AddModuleExports"/>,
       
  6815         <functionlink id="AddModuleOpens"/>, <functionlink id="AddModuleUses"/>,
       
  6816         and <functionlink id="AddModuleProvides"/>. If a module is not modifiable
       
  6817         then the module can not be updated with these functions.
       
  6818       </description>
       
  6819       <origin>new</origin>
       
  6820       <capabilities>
       
  6821       </capabilities>
       
  6822       <parameters>
       
  6823         <param id="module">
       
  6824           <ptrtype><jobject/></ptrtype>
       
  6825           <description>
       
  6826             The module to query.
       
  6827           </description>
       
  6828         </param>
       
  6829         <param id="is_modifiable_module_ptr">
       
  6830           <outptr><jboolean/></outptr>
       
  6831           <description>
       
  6832             On return, points to the boolean result of this function.
       
  6833           </description>
       
  6834         </param>
       
  6835       </parameters>
       
  6836       <errors>
       
  6837         <error id="JVMTI_ERROR_INVALID_MODULE">
       
  6838           If <paramlink id="module"></paramlink> is not a module object.
  6785         </error>
  6839         </error>
  6786       </errors>
  6840       </errors>
  6787     </function>
  6841     </function>
  6788 
  6842 
  6789   </category>
  6843   </category>
  7801 	</error>
  7855 	</error>
  7802 	<error id="JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_MODIFIERS_CHANGED">
  7856 	<error id="JVMTI_ERROR_UNSUPPORTED_REDEFINITION_METHOD_MODIFIERS_CHANGED">
  7803 	  A method in the new class version has different modifiers
  7857 	  A method in the new class version has different modifiers
  7804 	  than its counterpart in the old class version.
  7858 	  than its counterpart in the old class version.
  7805 	</error>
  7859 	</error>
       
  7860         <error id="JVMTI_ERROR_UNMODIFIABLE_MODULE">
       
  7861           A module cannot be modified.
       
  7862           See <functionlink id="IsModifiableModule"/>.
       
  7863         </error>
  7806       </errors>
  7864       </errors>
  7807     </function>
  7865     </function>
  7808 
  7866 
  7809   </category>
  7867   </category>
  7810 
  7868 
 11565       The call has been interrupted before completion.
 11623       The call has been interrupted before completion.
 11566     </errorid>
 11624     </errorid>
 11567     <errorid id="JVMTI_ERROR_UNMODIFIABLE_CLASS" num="79">
 11625     <errorid id="JVMTI_ERROR_UNMODIFIABLE_CLASS" num="79">
 11568       The class cannot be modified.
 11626       The class cannot be modified.
 11569     </errorid>
 11627     </errorid>
       
 11628     <errorid id="JVMTI_ERROR_UNMODIFIABLE_MODULE" num="80">
       
 11629       The module cannot be modified.
       
 11630     </errorid>
 11570     <errorid id="JVMTI_ERROR_NOT_AVAILABLE" num="98">
 11631     <errorid id="JVMTI_ERROR_NOT_AVAILABLE" num="98">
 11571       The functionality is not available in this virtual machine.
 11632       The functionality is not available in this virtual machine.
 11572     </errorid>
 11633     </errorid>
 11573     <errorid id="JVMTI_ERROR_ABSENT_INFORMATION" num="101">
 11634     <errorid id="JVMTI_ERROR_ABSENT_INFORMATION" num="101">
 11574       The requested information is not available.
 11635       The requested information is not available.
 14734           - can_generate_early_vmstart
 14795           - can_generate_early_vmstart
 14735           - can_generate_early_class_hook_events
 14796           - can_generate_early_class_hook_events
 14736        - Add new functions:
 14797        - Add new functions:
 14737           - GetAllModules
 14798           - GetAllModules
 14738           - AddModuleReads, AddModuleExports, AddModuleOpens, AddModuleUses, AddModuleProvides
 14799           - AddModuleReads, AddModuleExports, AddModuleOpens, AddModuleUses, AddModuleProvides
       
 14800           - IsModifiableModule
 14739       Clarified can_redefine_any_classes, can_retransform_any_classes and IsModifiableClass API to
 14801       Clarified can_redefine_any_classes, can_retransform_any_classes and IsModifiableClass API to
 14740       disallow some implementation defined classes.
 14802       disallow some implementation defined classes.
 14741   </change>
 14803   </change>
 14742   <change date="12 February 2017" version="9.0.0">
 14804   <change date="12 February 2017" version="9.0.0">
 14743       Minor update for GetCurrentThread function:
 14805       Minor update for GetCurrentThread function: