Commit graph

292 commits

Author SHA1 Message Date
Jorn Vernee
5977f266d0 8303604: Passing by-value structs whose size is not power of 2 doesn't work on all platforms (mainline)
Reviewed-by: mcimadamore
2023-03-06 15:18:39 +00:00
Pavel Rappo
e1745bc981 8303473: Add implied {@code} in java.lang.invoke.MethodHandles
Reviewed-by: jjg, lancea, mchung
2023-03-03 09:12:14 +00:00
David M. Lloyd
b527edd338 8292914: Lambda proxies have unstable names
Change the name of generated lambda proxy classes so that they no longer have a numerical suffix.

Reviewed-by: mchung
2023-02-27 17:18:44 +00:00
Mandy Chung
50dcc2aec5 8301460: Clean up LambdaForm to reference BasicType enums directly
Reviewed-by: jvernee
2023-02-15 18:29:26 +00:00
Mandy Chung
9c202a5a8f 8302260: VarHandle.describeConstable() fails to return a nominal descriptor for static public fields
Reviewed-by: alanb, psandoz
2023-02-14 21:15:14 +00:00
Mandy Chung
7f05d57a87 8217920: Lookup.defineClass injects a class that can access private members of any class in its own module
Reviewed-by: psandoz, alanb, darcy
2023-01-27 18:31:03 +00:00
Mandy Chung
facd41511b 8297757: VarHandles.getStaticFieldFromBaseAndOffset should get the receiver type from VarHandle
Reviewed-by: psandoz, alanb
2023-01-20 17:25:18 +00:00
Sergey Tsypanov
754f6e6116 8300237: Minor improvements in MethodHandles
Reviewed-by: redestad
2023-01-18 13:55:09 +00:00
Claes Redestad
48c8fb39a7 8299978: Remove MethodHandleNatives.getMembers
Reviewed-by: jvernee, mchung
2023-01-12 13:39:59 +00:00
Jesper Wilhelmsson
33f3bd8fad Merge 2023-01-11 21:50:42 +00:00
Maurizio Cimadamore
945ef07564 8299862: OfAddress setter should disallow heap segments
Reviewed-by: jvernee
2023-01-11 10:31:25 +00:00
Mandy Chung
a86b6f6fde 8299183: Invokers.checkExactType passes parameters to create WMTE in opposite order
Reviewed-by: iris, jpai
2023-01-10 17:05:33 +00:00
Jorn Vernee
0532045edb 8298590: Refactor LambdaForm constructors
Reviewed-by: redestad
2023-01-02 12:06:26 +00:00
Claes Redestad
3de775094d 8298177: Various java.lang.invoke cleanups
8284363: Redundant imports in BoundMethodHandle

Reviewed-by: jvernee
2022-12-07 15:37:58 +00:00
Maurizio Cimadamore
73baadceb6 8295044: Implementation of Foreign Function and Memory API (Second Preview)
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: jvernee, pminborg, psandoz, alanb, sundar
2022-12-05 13:49:53 +00:00
Claes Redestad
4485d4e517 8297728: Cache invocation type rather than invoker in NamedFunction
Reviewed-by: jvernee
2022-11-30 20:53:56 +00:00
Per Minborg
099b42f360 8297148: Add a @sealedGraph tag to CallSite
Reviewed-by: darcy
2022-11-26 08:28:31 +00:00
Ioi Lam
fd668dc44f 8295537: Enhance TRACE_METHOD_LINKAGE to show the target MethodHandle
Reviewed-by: jvernee, redestad, mchung
2022-10-27 22:07:54 +00:00
Ioi Lam
8d4c077218 8295302: Do not use ArrayList when LambdaForm has a single ClassData
Reviewed-by: vlivanov, redestad, mchung
2022-10-19 21:11:36 +00:00
Alan Bateman
acd5bcfc88 8289610: Degrade Thread.stop
Reviewed-by: rriggs, cjplummer, jpai, mchung, prr, mullan
2022-09-23 07:55:29 +00:00
Andrey Turbanov
ae52053757 8291954: Use Optional.isEmpty instead of !Optional.isPresent in java.base
Reviewed-by: jpai, alanb, lancea, rriggs, bpb
2022-08-06 09:53:35 +00:00
Jesper Wilhelmsson
a3e07d950a Merge 2022-07-20 07:39:01 +00:00
Ioi Lam
4dc421caa0 8290417: CDS cannot archive lamda proxy with useImplMethodHandle
Reviewed-by: dholmes, ccheung, mchung
2022-07-19 04:37:28 +00:00
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