Commit Graph

183 Commits

Author SHA1 Message Date
Shilpi Rastogi
389fc2ae25 8158171: MethodHandles.dropArgumentsToMatch(...) non-documented IAE
Reviewed-by: sundar, mhaupt
2016-06-06 09:13:35 +02:00
Paul Sandoz
4b1159ce76 8157239: java/lang/invoke/VarHandles/ tests fail by timeout with -Xcomp with lambda form linkage
Reviewed-by: vlivanov
2016-05-19 16:08:40 +02:00
Paul Sandoz
0bad445941 8157152: Atomic add for VarHandle byte[]/ByteBuffer views is incorrect for endian conversion
Reviewed-by: fyuan, shade, vlivanov
2016-05-18 18:46:14 +02:00
Michael Haupt
c4976196f5 8156915: introduce MethodHandle factory for array length
Reviewed-by: sundar
2016-05-18 10:42:29 +02:00
Aleksey Shipilev
33bb9220fc 8157171: Hook up Unsafe.weakCompareAndSetVolatile to VarHandles
Reviewed-by: psandoz, redestad
2016-05-17 22:28:00 +03:00
Alejandro Murillo
ffaebaa66e Merge 2016-05-17 05:38:15 -07:00
Paul Sandoz
44afe20e99 8156485: MethodHandles.varHandleExactInvoker should perform exact checks
Reviewed-by: vlivanov
2016-05-17 12:06:41 +02:00
Alejandro Murillo
7a3decd3a2 Merge 2016-05-14 09:11:07 -07:00
Alexandre Iline
114e7f30f7 8156695: Fix @modules in tests in java/lang/management
As part of JDK-8155993, tests are updated to declare dependencies on jdk.management.

Reviewed-by: mchung
2016-05-10 14:51:29 -07:00
Vladimir Ivanov
8761e88b55 Merge 2016-05-09 12:39:41 +03:00
Vladimir Ivanov
905fb139d7 Merge 2016-05-06 18:21:41 +03:00
Aleksey Shipilev
4f53885343 8155739: [TESTBUG] VarHandles/Unsafe tests for weakCAS should allow spurious failures
Reviewed-by: psandoz, vlivanov, simonis
2016-05-04 17:17:28 +03:00
Alan Bateman
44790114ee Merge 2016-05-03 11:45:56 +01:00
Alan Bateman
36e0820801 8154956: Module system implementation refresh (4/2016)
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: alanb, mchung, chegar, redestad
2016-05-03 09:09:57 +01:00
Paul Sandoz
e955660cf1 8154755: Add a VarHandle weakCompareAndSet with volatile semantics
Reviewed-by: shade, vlivanov
2016-04-29 13:46:19 -07:00
Michael Haupt
0b7775586f 8155106: MHs.Lookup.findConstructor returns handles for array classes
Reviewed-by: shade, sundar
2016-04-27 20:18:49 +02:00
Michael Haupt
fe4860fe5e 8155214: java/lang/invoke/PermuteArgsTest.java fails due to exhausted code cache
Reviewed-by: sundar
2016-04-27 15:01:21 +02:00
Paul Sandoz
27f82bea87 8154447: Exempt classes under java.util.concurrent from MH.Lookup restrictions
Reviewed-by: mchung, martin
2016-04-26 18:42:51 -07:00
Paul Sandoz
1af2806677 8154556: Use java.nio.ByteOrder instead of boolean value
Reviewed-by: alanb
2016-04-26 18:30:00 -07:00
Michael Haupt
cafabcafce 8154754: MethodHandles.countedLoop errors in deriving loop arguments, result type, and local state
Reviewed-by: redestad
2016-04-22 15:05:54 +02:00
Michael Haupt
e53e280d37 8154751: MethodHandles.countedLoop does not accept empty bodies
Reviewed-by: redestad
2016-04-22 15:05:26 +02:00
Michael Haupt
5b392c0abc 8152667: MHs.iteratedLoop(...) throws unexpected WMTE, disallows Iterator subclasses, generates inconsistent loop result type
Reviewed-by: redestad
2016-04-22 13:36:22 +02:00
Michael Haupt
402c448d0a 8150956: j.l.i.MethodHandles.whileLoop(...) and .iteratedLoop(...) throw unexpected exceptions in the case of 'init' return type is void
Reviewed-by: psandoz
2016-04-19 14:39:35 +02:00
Chris Hegarty
07cdc33e34 8137058: Clear out all non-Critical APIs from sun.reflect
Reviewed-by: alanb, jfranck, mchung
2016-04-15 16:19:15 +01:00
Michael Haupt
418c757b71 8150824: Exceptions when omitting trailing arguments in cleanup
The issue was fixed with the push for 8150829; this changeset adds tests.

Reviewed-by: psandoz
2016-04-14 15:18:42 +02:00
Shilpi Rastogi
284ec15fed 8150829: Enhanced drop-args, identity and default constant, varargs adjustment
Reviewed-by: psandoz, mhaupt, jrose
2016-04-13 15:48:14 +02:00
Paul Sandoz
a7aff44bbb 8151705: VarHandle.AccessMode enum names should conform to code style
Reviewed-by: mhaupt, shade, redestad
2016-04-13 15:05:48 +02:00
Michael Haupt
c304110149 8153637: MethodHandles.countedLoop/3 initialises loop counter to 1 instead of 0
Reviewed-by: psandoz, redestad
2016-04-13 09:20:22 +02:00
Paul Sandoz
6b661410d3 8152645: VarHandle lookup access control tests
Reviewed-by: mhaupt, redestad
2016-04-11 19:00:49 +02:00
Chris Hegarty
25b68378f6 8153737: Unsupported Module
Reviewed-by: alanb, mchung, psandoz
2016-04-09 20:12:13 +01:00
Zoltan Majo
c8858ca3b6 Merge 2016-03-24 16:21:19 +01:00
Paul Sandoz
9fb30a3740 8149644: Integrate VarHandles
Co-authored-by: Aleksey Shipilev <aleksey.shipilev@oracle.com>
Reviewed-by: coffeys, mhaupt, vlivanov
2016-03-24 11:21:21 +01:00
Chris Hegarty
ff2e79c118 Merge 2016-03-22 10:42:32 +00:00
Alan Bateman
db4d383614 8142968: Module System implementation
Initial integration of JEP 200, JEP 260, JEP 261, and JEP 282

Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Chris Hegarty <chris.hegarty@oracle.com>
Co-authored-by: Alexandr Scherbatiy <alexandr.scherbatiy@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Co-authored-by: Calvin Cheung <calvin.cheung@oracle.com>
Co-authored-by: Daniel Fuchs <daniel.fuchs@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Jaroslav Bachorik <jaroslav.bachorik@oracle.com>
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Miroslav Kos <miroslav.kos@oracle.com>
Co-authored-by: Huaming Li <huaming.li@oracle.com>
Co-authored-by: Sean Mullan <sean.mullan@oracle.com>
Co-authored-by: Naoto Sato <naoto.sato@oracle.com>
Co-authored-by: Masayoshi Okutsu <masayoshi.okutsu@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Co-authored-by: Philip Race <philip.race@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Sergey Bylokhov <sergey.bylokhov@oracle.com>
Co-authored-by: Alexandre Iline <alexandre.iline@oracle.com>
Co-authored-by: Volker Simonis <volker.simonis@gmail.com>
Co-authored-by: Staffan Larsen <staffan.larsen@oracle.com>
Co-authored-by: Stuart Marks <stuart.marks@oracle.com>
Co-authored-by: Semyon Sadetsky <semyon.sadetsky@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Co-authored-by: Vincent Ryan <vincent.x.ryan@oracle.com>
Co-authored-by: Weijun Wang <weijun.wang@oracle.com>
Co-authored-by: Yuri Nesterenko <yuri.nesterenko@oracle.com>
Co-authored-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Felix Yang <felix.yang@oracle.com>
Co-authored-by: Andrei Eremeev <andrei.eremeev@oracle.com>
Co-authored-by: Frank Yuan <frank.yuan@oracle.com>
Co-authored-by: Sergei Pikalev <sergei.pikalev@oracle.com>
Co-authored-by: Sibabrata Sahoo <sibabrata.sahoo@oracle.com>
Co-authored-by: Tiantian Du <tiantian.du@oracle.com>
Co-authored-by: Sha Jiang <sha.jiang@oracle.com>
Reviewed-by: alanb, mchung, naoto, rriggs, psandoz, plevart, mullan, ascarpino, vinnie, prr, sherman, dfuchs, mhaupt
2016-03-17 19:04:16 +00:00
Michael Haupt
cc3d80e38a 8151778: TestLookup.java fails after push of JDK-8150782
Reviewed-by: darcy
2016-03-14 08:10:44 +01:00
Michael Haupt
bfb7e8cd07 8150782: findClass / accessClass throw unexpected exceptions
Reviewed-by: sundar
2016-03-13 20:26:29 +01:00
Alexandre Iline
519a884361 8150998: Fix module dependences in java/lang tests
Reviewed-by: mchung
2016-03-03 15:13:55 -08:00
Michael Haupt
da0ba02676 8150957: j.l.i.MethodHandles.whileLoop(...) fails with IOOBE in the case init is null, step and pred have parameters
Reviewed-by: psandoz
2016-03-03 14:29:00 +01:00
Michael Haupt
525c0c0972 8150832: split T8139885 into several tests by functionality
Reviewed-by: redestad
2016-03-02 20:36:00 +01:00
Michael Haupt
1619ac11c9 8150635: j.l.i.MethodHandles.loop(...) throws IndexOutOfBoundsException
Reviewed-by: psandoz
2016-03-02 20:16:11 +01:00
Michael Haupt
fc2641e57f 8150953: j.l.i.MethodHandles: example section in whileLoop(...) provides example for doWhileLoop
Reviewed-by: psandoz
2016-03-02 14:15:15 +01:00
Michael Haupt
2d20eec823 8150825: MethodHandles.tryFinally throws IndexOutOfBoundsException for non-conforming parameter lists
Reviewed-by: redestad
2016-02-29 14:16:20 +01:00
Aleksey Shipilev
c7a7ba0e1e 8148483: JEP 280: Indify String Concatenation
Co-authored-by: Remi Forax <forax@univ-mlv.fr>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: psandoz, mcimadamore, igerasim, forax, plevart, vlivanov, ihse
2016-01-28 19:43:05 +03:00
Alan Bateman
3573d65040 8148147: Sync up @modules from jigsaw/jake
Reviewed-by: chegar, mchung
2016-01-25 19:01:19 +00:00
Michael Haupt
d64d6d8662 8147078: MethodHandles.catchException does not enforce Throwable subtype
Reviewed-by: psandoz, sundar
2016-01-14 13:53:13 +01:00
Michael Haupt
60015e143f 8146786: [TESTBUG] straighten out testability for several issues
Reviewed-by: psandoz
2016-01-11 17:19:16 +01:00
Michael Haupt
03e64cef7b 8143343: add JEP 274 Javadoc tests to JavaDocExamplesTest
Reviewed-by: sundar
2015-12-03 15:36:20 +01:00
Michael Haupt
063afcee2f 8143798: jck failures: api/java_lang/invoke/MethodHandle/index_MethodsTests[asSpreaderWMTE]: java.lang.VerifyError: Bad type on operand stack
Reviewed-by: vlivanov
2015-11-25 09:23:07 +01:00
Michael Haupt
5b2c88e28a 8139885: implement JEP 274: enhanced method handles
Reviewed-by: jrose, psandoz, vlivanov
2015-11-20 15:34:12 +01:00
Claes Redestad
7563066613 8143253: java/lang/invoke/CompileThresholdBootstrapTest.java failing on mach5
Reviewed-by: lancea
2015-11-18 20:56:00 +01:00