RFR: JDK-8282798 java.lang.runtime.Carrier [v11]
Daniel Fuchs
dfuchs at openjdk.java.net
Tue Mar 22 10:23:40 UTC 2022
On Mon, 21 Mar 2022 14:24:30 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:
>> We propose to provide a runtime anonymous carrier class object generator; java.lang.runtime.Carrier. This generator class is designed to share anonymous classes when shapes are similar. For example, if several clients require objects containing two integer fields, then Carrier will ensure that each client generates carrier objects using the same underlying anonymous class.
>>
>> See JBS for details.
>
> Jim Laskey has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 18 additional commits since the last revision:
>
> - Remove LOOKUP static final
> - Merge branch 'master' into 8282798
> - Typos
> - Update Carrier.java
> - Redo API to use list, bring Carrier.component back
> - Clean up API
> - Remove redundant MethodHandle component(MethodType methodType, int i) API
> - Revert to {@return} style comments.
> - Clarify primitive store in array carriers.
> - Use long array for primitives
> - ... and 8 more: https://git.openjdk.java.net/jdk/compare/eace55cb...a8657bbe
src/java.base/share/classes/java/lang/runtime/Carrier.java line 166:
> 164: from = longIndex++;
> 165: filter = DOUBLE_TO_LONG;
> 166: } else if(ptype == float.class) {
Trivial: space missing after `if`
-------------
PR: https://git.openjdk.java.net/jdk/pull/7744
More information about the core-libs-dev
mailing list