Commit graph

369 commits

Author SHA1 Message Date
Joe Darcy
a40c17b730 8289775: Update java.lang.invoke.MethodHandle[s] to use snippets
Reviewed-by: jrose
2022-07-06 21:28:09 +00:00
Claes Redestad
9048cef761 8288425: Footprint regression due MH creation when initializing StringConcatFactory
Reviewed-by: jlaskey
Backport-of: 6d595614a2
2022-06-28 12:27:30 +00:00
Claes Redestad
5cdb4b1960 8288011: StringConcatFactory: Split application of stringifiers
Reviewed-by: jvernee, mchung
2022-06-20 11:56:20 +00:00
Claes Redestad
6d595614a2 8288425: Footprint regression due MH creation when initializing StringConcatFactory
Reviewed-by: jvernee, mchung
2022-06-15 19:48:27 +00:00
XenoAmess
e01cd7c3ed 8284780: Need methods to create pre-sized HashSet and LinkedHashSet
Reviewed-by: naoto, bpb, dfuchs, ascarpino
2022-06-09 01:50:54 +00:00
Claes Redestad
ecf00785f2 8287442: Reduce list to array conversions in java.lang.invoke.MethodHandles
Reviewed-by: jvernee
2022-06-08 07:18:29 +00:00
Claes Redestad
5c39a36641 8287522: StringConcatFactory: Add in prependers and mixers in batches
Reviewed-by: jlaskey, mchung
2022-06-08 07:17:31 +00:00
Sergey Tsypanov
168b226b0f 8282662: Use List.of() factory method to reduce memory consumption
Reviewed-by: redestad, rriggs
2022-06-01 13:31:36 +00:00
Claes Redestad
be93318576 8287292: Improve TransformKey to pack more kinds of transforms efficiently
Reviewed-by: jlaskey, jvernee, mchung
2022-05-27 12:10:40 +00:00
Claes Redestad
d5d19f52ce 8287013: StringConcatFactory: remove short and byte mixers/prependers
Reviewed-by: jlaskey
2022-05-20 08:17:23 +00:00
Jorn Vernee
81e4bdbe13 8283689: Update the foreign linker VM implementation
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Nick Gasson <ngasson@openjdk.org>
Reviewed-by: mcimadamore, vlivanov, rehn
2022-05-18 09:49:55 +00:00
Joe Darcy
160944bc6b 8286615: Small refactor to SerializedLambda
Reviewed-by: bpb, iris
2022-05-12 16:56:05 +00:00
Maurizio Cimadamore
2c5d136260 8282191: Implementation of Foreign Function & Memory API (Preview)
Reviewed-by: erikj, jvernee, psandoz, dholmes, mchung
2022-05-12 16:17:45 +00:00
Claes Redestad
3fa1c40439 8286298: Remove unused methods in sun.invoke.util.VerifyType
Reviewed-by: bpb, alanb, mchung
2022-05-10 09:01:40 +00:00
Alan Bateman
9583e3657e 8284161: Implementation of Virtual Threads (Preview)
Co-authored-by: Ron Pressler <rpressler@openjdk.org>
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Erik Österlund <eosterlund@openjdk.org>
Co-authored-by: Andrew Haley <aph@openjdk.org>
Co-authored-by: Rickard Bäckman <rbackman@openjdk.org>
Co-authored-by: Markus Grönlund <mgronlun@openjdk.org>
Co-authored-by: Leonid Mesnik <lmesnik@openjdk.org>
Co-authored-by: Serguei Spitsyn <sspitsyn@openjdk.org>
Co-authored-by: Chris Plummer <cjplummer@openjdk.org>
Co-authored-by: Coleen Phillimore <coleenp@openjdk.org>
Co-authored-by: Robbin Ehn <rehn@openjdk.org>
Co-authored-by: Stefan Karlsson <stefank@openjdk.org>
Co-authored-by: Thomas Schatzl <tschatzl@openjdk.org>
Co-authored-by: Sergey Kuksenko <skuksenko@openjdk.org>
Reviewed-by: lancea, eosterlund, rehn, sspitsyn, stefank, tschatzl, dfuchs, lmesnik, dcubed, kevinw, amenkov, dlong, mchung, psandoz, bpb, coleenp, smarks, egahlin, mseledtsov, coffeys, darcy
2022-05-07 08:06:16 +00:00
Claes Redestad
6c79671e50 8285633: Take better advantage of generic MethodType cache
Reviewed-by: jvernee
2022-04-27 17:54:21 +00:00
Claes Redestad
5d1ec54d6c 8285007: Use correct lookup mode for MethodHandleStatics.UNSAFE
Reviewed-by: psandoz, mchung
2022-04-19 20:26:02 +00:00
Magnus Ihse Bursie
fb469fb894 8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
2022-04-19 20:07:57 +00:00
XenoAmess
87faa85c59 8186958: Need method to create pre-sized HashMap
Reviewed-by: chegar, naoto, joehw, lancea, wetmore, smarks
2022-04-19 00:03:56 +00:00
Pavel Rappo
d3d71ea289 8284922: Fix some doc-comment issues on methods with package access in JDK API
Reviewed-by: darcy, iris, bpb
2022-04-18 17:35:48 +00:00
Claes Redestad
280aa42880 8284579: Improve VarHandle checks for interpreter
Reviewed-by: mcimadamore, mchung
2022-04-13 07:21:24 +00:00
Dan Heidinga
fc7a17c79b 8284103: AsVarargsCollector::asCollectorCache incorrectly marked @stable
Reviewed-by: jvernee, shade
2022-04-01 12:50:21 +00:00
Mandy Chung
e61ccfba7f 8283470: Update java.lang.invoke.VarHandle to use sealed classes
Reviewed-by: darcy, psandoz
2022-03-30 17:37:42 +00:00
Mandy Chung
489b27d2c0 8282776: Bad NullPointerException message when invoking an interface MethodHandle on a null receiver
Reviewed-by: psandoz
2022-03-29 19:57:53 +00:00
Joe Darcy
f16244509d 8283416: Update java.lang.invoke.MethodHandle to use sealed classes
Reviewed-by: sundar, mchung
2022-03-24 19:08:23 +00:00
liach
3e73a0b726 8283237: CallSite should be a sealed class
Reviewed-by: jkuhn, mchung
2022-03-23 16:43:06 +00:00
Joe Darcy
5ef1990d6c 8283274: Improve @jvms usage in java.base
Reviewed-by: iris
2022-03-17 16:37:20 +00:00
Joe Darcy
0cf291bc31 8283234: Improve @jls usage in java.base
Reviewed-by: iris
2022-03-16 16:17:50 +00:00
Tim Prinzing
67763df4dc 8281003: MethodHandles::lookup throws NPE if caller is null
Reviewed-by: ihse, mchung, jrose, alanb
2022-02-16 20:09:46 +00:00
Aleksey Shipilev
fc77217814 8281168: Micro-optimize VarForm.getMemberName for interpreter
Reviewed-by: redestad, vlivanov, mchung
2022-02-09 06:28:00 +00:00
Joe Darcy
4dbebb62aa 8280534: Enable compile-time doclint reference checking
Reviewed-by: serb, naoto, mchung, lancea, iris
2022-01-31 23:22:38 +00:00
Mandy Chung
a183bfb436 8280377: MethodHandleProxies does not correctly invoke default methods with varags
Reviewed-by: alanb
2022-01-26 01:24:15 +00:00
Joe Darcy
cbe8395ace 8280168: Add Objects.toIdentityString
Reviewed-by: alanb, mchung, rriggs, smarks
2022-01-25 18:15:37 +00:00
Joe Darcy
8e82d0021c 8280492: Use cross-module syntax for cross-module links
Reviewed-by: iris, serb, lancea, dfuchs, aivanov
2022-01-24 20:16:38 +00:00
Vladimir Ivanov
ad34f03b54 8279515: C1: No inlining through invokedynamic and invokestatic call sites when resolved class is not linked
Reviewed-by: kvn, dlong
2022-01-10 13:56:01 +00:00
Maurizio Cimadamore
9d43d25da8 8278897: Alignment of heap segments is not enforced correctly
Reviewed-by: jvernee
2022-01-05 10:47:34 +00:00
Maurizio Cimadamore
96e36071b6 8275063: Implementation of Foreign Function & Memory API (Second incubator)
Reviewed-by: erikj, psandoz, jvernee, darcy
2021-11-24 11:51:16 +00:00
Ludvig Janiuk
7e87f946ce 8276652: Missing row headers in MethodHandles.Lookup docs
Reviewed-by: mchung
2021-11-04 20:46:23 +00:00
Ludvig Janiuk
99d4b07cdd 8276649: MethodHandles.Lookup docs: replace the table in the cross-module access check section with list
Reviewed-by: mchung
2021-11-04 17:26:18 +00:00
Pavel Rappo
615063364a 8276348: Use blessed modifier order in java.base
Reviewed-by: dfuchs, darcy, iris, rriggs, martin
2021-11-03 10:07:48 +00:00
Mandy Chung
21da218387 8274848: LambdaMetaFactory::metafactory on REF_invokeSpecial impl method has incorrect behavior
Reviewed-by: psandoz, dlsmith
2021-10-28 22:24:56 +00:00
Mandy Chung
c6339cb8a2 8271820: Implementation of JEP 416: Reimplement Core Reflection with Method Handle
8013527: calling MethodHandles.lookup on itself leads to errors

Co-authored-by: Peter Levart <plevart@openjdk.org>
Co-authored-by: Claes Redestad <redestad@openjdk.org>
Co-authored-by: Mandy Chung <mchung@openjdk.org>
Reviewed-by: mcimadamore, plevart, egahlin, redestad, cjplummer, alanb
2021-10-28 18:32:50 +00:00
Harold Seigel
bbc606117f 8272614: Unused parameters in MethodHandleNatives linking methods
Reviewed-by: dholmes, lfoltan
2021-10-20 15:48:43 +00:00
Pavel Rappo
8799856528 8274075: Fix miscellaneous typos in java.base
Reviewed-by: dfuchs, darcy, iris, lancea, bpb
2021-09-23 08:08:39 +00:00
Sergey Tsypanov
4c673df31e 8273656: Improve java.lang.invoke.MethodType.parameterList() and its usage
Reviewed-by: jvernee, vlivanov, mchung
2021-09-15 11:11:15 +00:00
Pavel Rappo
b4b121018d 8273616: Fix trivial doc typos in the java.base module
Reviewed-by: jrose, iris, lancea, dfuchs, rriggs
2021-09-13 17:46:13 +00:00
Mandy Chung
ec9d1bebd7 8273194: Document the two possible cases when Lookup::ensureInitialized returns
Reviewed-by: alanb
2021-09-10 17:17:31 +00:00
Vladimir Ivanov
faa942c8ba 8273000: Remove WeakReference-based class initialisation barrier implementation
Reviewed-by: psandoz, mchung
2021-09-08 11:28:17 +00:00
Vladimir Ivanov
21012f2bbe 8078641: MethodHandle.asTypeCache can retain classes from unloading
Co-authored-by: Peter Levart <plevart@openjdk.org>
Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Reviewed-by: psandoz, mchung, plevart
2021-09-08 11:27:14 +00:00
Claes Redestad
7a4c754e5d 8271611: Use SecurityConstants.ACCESS_PERMISSION in MethodHandles
Reviewed-by: rriggs
2021-08-02 15:34:56 +00:00