150 Commits

Author SHA1 Message Date
Brent Christian
a4613d4a8f 8212117: Class.forName may return a reference to a loaded but not linked Class
Reviewed-by: dholmes, mchung
2019-09-09 11:04:04 -07:00
Joe Darcy
10f1f10f2e 8230723: Remove default constructors from java.lang and java.io
Reviewed-by: bpb, rriggs
2019-09-09 10:13:42 -07:00
Claes Redestad
c788d9841c 8230662: Remove dead code from MethodTypeForm
Reviewed-by: vlivanov, mchung
2019-09-07 15:44:04 +02:00
Joe Darcy
9d764ee48e 8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
2019-08-29 16:31:34 -07:00
Claes Redestad
b4c63048bb 8230302: GenerateJLIClassesPlugin can generate invalid DirectMethodHandle methods
Reviewed-by: mchung
2019-08-29 15:59:00 +02:00
Mandy Chung
182c19e8c4 8209005: Lookup.unreflectSpecial fails for default methods when Lookup.findSpecial works
8209078: Unable to call default method from interface in another module from named module

Reviewed-by: dfuchs, plevart
2019-08-13 15:49:11 -07:00
Mandy Chung
19ec64630a 8228671: Fastdebug VM throws InternalError when publicLookup.in(T) is used to resolve a member
Reviewed-by: alanb
2019-07-27 14:49:16 -07:00
Mandy Chung
068575e9b1 8173978: Lookup.in should allow teleporting from a lookup class in a named module without dropping all access
Reviewed-by: alanb, plevart
2019-07-24 16:46:42 -07:00
Jonathan Gibbons
077ecbf2b2 8225314: broken links in java.base
Reviewed-by: darcy
2019-06-04 15:42:16 -07:00
Christoph Langer
fd67f8ee69 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler
Reviewed-by: smarks, dfuchs
2019-05-24 07:56:29 +01:00
Claes Redestad
5d1df35fe7 8223454: Reduce String concatenation shapes by folding initialLengthCoder into last mixer
Reviewed-by: jlaskey
2019-05-09 17:28:27 +02:00
Claes Redestad
c23dc4dfcf 8222895: StackOverflowError in custom security manager that relies on ClassSpecializer
Reviewed-by: alanb
2019-05-02 10:38:00 +02:00
Claes Redestad
e7a6cbbd38 8222852: Reduce String concat combinator tree shapes by folding constants into prependers
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: shade, plevart, forax
2019-04-30 12:54:07 +02:00
Claes Redestad
781fb29580 8222484: Specialize generation of simple String concatenation expressions
Reviewed-by: jrose, jlaskey
2019-04-17 00:06:38 +02:00
Adam Farley
be132fcc65 8216558: Lookup.unreflectSetter(Field) fails to throw IllegalAccessException for final fields
Reviewed-by: mchung
2019-03-26 15:53:36 -07:00
Jonathan Gibbons
2df0f4b4dd 8220249: fix headings in java.compiler
Reviewed-by: erikj, darcy
2019-03-20 15:35:26 -07:00
Andrey Turbanov
cfeb359800 8218022: Repeated words typos in java.base
Reviewed-by: alanb, lancea, mchung
2019-01-30 00:24:32 +00:00
Vladimir Ivanov
6a61345684 8213234: Move LambdaForm.Hidden to jdk.internal.vm.annotation
Reviewed-by: mchung, dlong
2019-01-22 18:13:49 -08:00
Vicente Romero
0032475ef1 8215648: remove equals and hashCode implementations from j.l.i.VarHandle
Reviewed-by: mchung
2019-01-11 09:02:44 -05:00
Vicente Romero
650f3fc113 8215300: additional changes to constants API
Reviewed-by: goetz
2018-12-13 10:35:09 -05:00
Claes Redestad
a3df1d618e 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb
2018-12-13 15:31:05 +01:00
Vicente Romero
9846588b31 8210031: implementation for JVM Constants API
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: jrose, mcimadamore, darcy, mchung, rriggs, dholmes, forax
2018-12-09 12:36:24 -05:00
Erik Österlund
3a5bccf5c6 8213565: Crash in DependencyContext::remove_dependent_nmethod
Reviewed-by: rehn, kvn
2018-11-30 11:40:48 +01:00
Vicente Romero
61082e6b25 8213480: update internal ASM version to 7.0
Reviewed-by: dholmes, iignatyev, alanb
2018-11-13 23:33:17 -05:00
Claes Redestad
8a64d3bc3c 8213741: Consolidate Object and String Stringifiers
Reviewed-by: shade
2018-11-13 11:34:54 +01:00
Claes Redestad
eda5f09014 8213478: Reduce rebinds when applying repeated filters and conversions
Reviewed-by: vlivanov, jrose
2018-11-11 21:24:46 +01:00
Mandy Chung
9ffe7e1205 8211122: Reduce the number of internal classes made accessible to jdk.unsupported
Reviewed-by: alanb, dfuchs, kvn
2018-11-06 10:01:16 -08:00
Claes Redestad
91a2c2e340 8213035: Pack MethodHandleInlineStrategy coder and length into a long
Reviewed-by: vlivanov, mchung
2018-10-30 09:34:50 +01:00
Claes Redestad
06a2bb5274 8212726: Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory
Reviewed-by: jlaskey, vlivanov
2018-10-23 11:03:51 +02:00
Mandy Chung
5e6d6b8642 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
Reviewed-by: dholmes, thartmann
2018-10-22 17:00:04 -07:00
Claes Redestad
b3b41df70f 8212597: Optimize String concatenation setup when using primitive operands
Reviewed-by: shade
2018-10-17 17:35:26 +02:00
Mandy Chung
5a36050cfd 8211921: AssertionError in MethodHandles$Lookup.defineClass
Reviewed-by: alanb
2018-10-10 15:19:34 -07:00
Mandy Chung
73a6313038 8181443: Replace usages of jdk.internal.misc.Unsafe with MethodHandles.Lookup.defineClass
Reviewed-by: alanb, egahlin
2018-10-04 08:45:21 -07:00
Ivan Gerasimov
2ae27da3bc 8200381: Typos in javadoc - missing verb "be" and alike
Reviewed-by: lancea, darcy, wetmore
2018-10-02 10:19:07 -07:00
Alan Bateman
9c70e26c14 8210496: Improve filtering for classes with security sensitive fields
Reviewed-by: plevart, mchung
2018-09-19 08:49:07 +01:00
Daniel Fuchs
595a45041b 8210366: Typo in MethodHandles.Lookup: must be either be
Reviewed-by: rriggs
2018-09-04 18:32:28 +01:00
Claes Redestad
55cf3de09b 8209633: Avoid creating WeakEntry wrappers when looking up cached MethodType
Reviewed-by: plevart, mchung
2018-08-20 14:25:02 +02:00
Paul Sandoz
70b706c224 8206955: MethodHandleProxies.asInterfaceInstance does not support default methods
Reviewed-by: mchung, plevart
2018-08-06 15:18:57 -07:00
Joe Darcy
269286da50 8207816: Align declaration of SerializedLambda.readResolve with serialization conventions
Reviewed-by: briangoetz
2018-07-19 09:20:08 -07:00
Vivek Theeyarath
ac99e1d447 8177275: IllegalArgumentException when MH would have too many parameters is not specified for several methods
Updated spec and added tests

Reviewed-by: psandoz
2018-07-02 23:33:40 -07:00
Paul Sandoz
14651d9e02 8195650: Method references to VarHandle accessors
Reviewed-by: jrose
2018-06-25 14:39:44 -07:00
David Holmes
95bf19563b 8010319: Implementation of JEP 181: Nest-Based Access Control
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Maurizio Mimadamore <maurizio.mimadamore@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Tobias Hartmann <tobias.hartmann@oracle.com>
Co-authored-by: Vlaidmir Ivanov <vladimir.x.ivanov@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com>
Co-authored-by: John Rose <john.r.rose@oracle.com>
Co-authored-by: Daniel Smith <daniel.smith@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Kumar Srinivasan <kumardotsrinivasan@gmail.com>
Co-authored-by: Boris Ulasevich <boris.ulasevich@bell-sw.com>
Reviewed-by: alanb, psandoz, mchung, coleenp, acorn, mcimadamore, forax, jlahoda, sspitsyn, abuckley
2018-06-23 01:32:41 -04:00
Paul Sandoz
54e53458c6 8202922: Method reference identity is broken by serialization
Reviewed-by: jlaskey, mchung
2018-06-22 12:05:36 -07:00
Claes Redestad
f4b24c3473 8204194: Lazily create MethodHandleImpl$AsVarargsCollector.asCollectorCache
Reviewed-by: psandoz
2018-06-01 11:34:13 +02:00
Vivek Theeyarath
5103e3b4a3 8177276: MethodHandles.insertArguments doesn't specify IllegalArgumentException on index mismatch
Correct MethodHandles.insertArguments spec

Reviewed-by: psandoz, mchung, ntv
2018-05-25 22:56:00 -07:00
Claes Redestad
b67da0de17 8203886: Invoke LambdaMetafactory::altMetafactory exactly from the BootstrapMethodInvoker
Reviewed-by: mchung
2018-05-30 14:46:28 +02:00
Claes Redestad
b329be2b75 8202548: Use reservation Object when creating SpeciesData
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: psandoz, plevart
2018-05-08 10:49:59 +02:00
John Rose
d05ed512ac 8200167: Validate more special case invocations
Co-authored-by: Vladimir Ivanov <vladimir.x.ivanov@oracle.com>
Co-authored-by: Tobias Hartmann <tobias.hartmann@oracle.com>
Reviewed-by: acorn, vlivanov, dholmes
2018-04-30 21:56:54 -04:00
Claes Redestad
eed00fcf0a 8202184: Reduce time blocking the ClassSpecializer cache creating SpeciesData
Reviewed-by: psandoz, plevart
2018-04-25 13:54:11 +02:00
Paul Sandoz
1a23a6264e 8194238: Trying exceptions in MethodHandles
Reviewed-by: jrose, vlivanov, ahgross
2018-01-24 16:44:31 -08:00