RFR 8029567: Clean up linkResolver code
Coleen Phillimore
coleen.phillimore at oracle.com
Thu May 14 23:16:37 UTC 2015
Summary: Moved non-const reference return values to actual return
values, refactored error handling code, pass CLD rather than
class_loader oop, remove oop from Method* variable names.
Also modified the long parameter lists into a class LinkInfo to hold
information from the constant pool that is always passed through several
layers of functions together. Also reformatted to split parameter list
lines to some reasonable width.
The type methodHandle should be passed as const reference types to avoid
copy construction, because it has a non-trivial destructor. This sort of
change could be made in more places in the JVM, but I stopped with
linkResolver.
Ran all hotspot jtreg tests, jck lang/vm/api/java_lang tests, internal
testbase tests: vm.quick.testlist, vm.defmeth.testlist, proposed new
selection-resolution tests, jdk/java/lang/invoke tests (see RFR).
open webrev at http://cr.openjdk.java.net/~coleenp/8029567/
bug link https://bugs.openjdk.java.net/browse/JDK-8029567
Thanks,
Coleen
More information about the hotspot-runtime-dev
mailing list