On Thu, 20 Apr 2023 17:23:08 GMT, Jorn Vernee <jver...@openjdk.org> wrote:
> Strip names from the function descriptors used in linkage requests. The names > are not important for classification, and this will allow the cached > MethodHandle/UpcallStubFactory to be shared across linkage request with the > same structure, but with layouts that have different names. > > I also have another implementation that avoids copying all the layouts, and > instead re-implemented equals and hashCode in the LinkRequest wrapper: > https://github.com/openjdk/jdk/compare/pr/13079...JornVernee:jdk:NoNameCache > But, this seems too complex. Linking code is not very performance sensitive, > so I instead went with a simpler approach in this patch. This pull request has now been integrated. Changeset: 67dd8414 Author: Jorn Vernee <jver...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/67dd8414321677e3fc41fa1470c857c0afaa4259 Stats: 91 lines in 2 files changed: 86 ins; 1 del; 4 mod 8305093: Linker cache should not take layout names into account Reviewed-by: mcimadamore ------------- PR: https://git.openjdk.org/jdk/pull/13562