On Sun, 23 Apr 2023 23:44:41 GMT, Chen Liang <li...@openjdk.org> wrote:
>> Please review this patch adding two new convenience methods that allows >> easier access to MethodTypeDesc instances and its associated CSR as well. >> This is a necessity to allow #13186 to reduce array copies in a few >> scenarios; the implementation of the two methods will be updated there. >> >> Javadoc: >> https://cr.openjdk.org/~liach/8306698/1/java.base/java/lang/constant/MethodTypeDesc.html > > Chen Liang has updated the pull request incrementally with one additional > commit since the last revision: > > Update method type and specification, update tests I plan to keep it. Migration to an immutable list to optimize `parameterList` while it doesn't affect the performance of other accessors. Meanwhile, the list passed by the user code to the factory can be shared safely if it's immutable, while we shouldn't trust the vararg array to the factory. ------------- PR Comment: https://git.openjdk.org/jdk/pull/13599#issuecomment-1560082635