177 Commits

Author SHA1 Message Date
Claes Redestad
63715643fa 8158933: String concat stringifiers setup should avoid unnecessary lookups
Reviewed-by: shade
2016-06-09 16:13:09 +02:00
Aleksey Shipilev
41b6361f34 8158851: MH.publicLookup() init circularity, triggered by custom SecurityManager with String concat and -limitmods java.base
Reviewed-by: alanb, redestad, jlaskey
2016-06-08 11:14:45 +03:00
Shilpi Rastogi
389fc2ae25 8158171: MethodHandles.dropArgumentsToMatch(...) non-documented IAE
Reviewed-by: sundar, mhaupt
2016-06-06 09:13:35 +02:00
Michael Haupt
3eec24e560 8156868: MethodHandles.zero(Class) doc issues
Reviewed-by: psandoz, mhaupt
2016-06-02 14:28:16 +02:00
Michael Haupt
73dea49766 8157590: MethodHandles.arrayLength() lacks @since tag, implementation throws wrong exception
Reviewed-by: psandoz
2016-05-24 09:13:47 +02:00
Aleksey Shipilev
55889705b0 8148604: JEP 280, Switch to more optimal concatenation strategy
Reviewed-by: psandoz, redestad
2016-05-19 16:59:31 +03:00
Shilpi Rastogi
8aff72ba65 8149574: Fix java/lang/invoke/MethodHandleImpl's use of Unsafe.defineAnonymousClass()
Reviewed-by: vlivanov, psandoz, sundar, mhaupt
2016-05-19 11:13:52 +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
Mandy Chung
36b0cdb85a 8153912: Reconsider StackFrame::getFileName and StackFrame::getLineNumber
Add StackFrame::getByteCodeIndex method. Revised getFileName and getLineNumber method.

Reviewed-by: dfuchs, bchristi
2016-05-09 09:35:57 -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
Paul Sandoz
3d8d9fe7fa 8155794: Move Objects.checkIndex BiFunction accepting methods to an internal package
Reviewed-by: chegar, shade, forax, vlivanov
2016-05-05 18:14:47 -07:00
Paul Sandoz
37445185d2 8155258: VarHandle implementation improvements
Reviewed-by: shade, vlivanov
2016-05-05 11:39:08 -07:00
Claes Redestad
e8cd76568d 8155775: Re-examine naming of privileged methods to access System properties
Reviewed-by: mullan
2016-05-03 15:50:54 +02:00
Paul Sandoz
e955660cf1 8154755: Add a VarHandle weakCompareAndSet with volatile semantics
Reviewed-by: shade, vlivanov
2016-04-29 13:46:19 -07:00
Aleksey Shipilev
a6f2cdbb0f 8155090: String concatenation fails with a custom SecurityManager that uses concatenation
Reviewed-by: redestad, chegar
2016-04-29 13:24:27 +03: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
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
Claes Redestad
2b5207e74d 8154231: Simplify access to System properties from JDK code
Reviewed-by: rriggs, chegar, weijun
2016-04-21 13:39:53 +02:00
Vladimir Ivanov
49b2db4ae7 8152335: Improve MethodHandle consistency
Co-authored-by: Michael Haupt <michael.haupt@oracle.com>
Reviewed-by: acorn, ahgross, jrose
2016-03-18 18:07:55 -07:00
Alejandro Murillo
a1cfe0ce2d Merge 2016-04-14 19:55:41 -07:00
Daniel D. Daugherty
451af9b1b2 Merge 2016-04-14 15:25:41 -07: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
87c6cee72e 8146458: Improve exception reporting for Objects.checkIndex/checkFromToIndex/checkFromIndexSize
Reviewed-by: jrose, smarks
2016-04-13 15:05:50 +02:00
Paul Sandoz
e10605459a 8151198: VarHandle factory-specific exceptions
Reviewed-by: shade
2016-04-13 15:05:49 +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
Alejandro Murillo
fd0239a0bc Merge 2016-04-13 00:00:39 -07:00
Claes Redestad
08d525d5fc 8154067: Avoid early use of limited privilege escalation in InnerClassLambdaMetafactory
Reviewed-by: alanb, mchung, mullan, briangoetz
2016-04-12 21:41:28 +02:00
Alejandro Murillo
b84738d2e3 Merge 2016-04-11 14:21:27 -07:00
Jesper Wilhelmsson
e0a7cbf80a Merge 2016-04-11 20:16:34 +02:00
Paul Sandoz
878d4d8655 8151706: Update VarHandle implementation to use @Stable arrays
Reviewed-by: mhaupt, shade, redestad
2016-04-11 18:21:25 +02:00
Brent Christian
74f12569ec 8153123: Streamline StackWalker code
Reviewed-by: coleenp, dfuchs, mchung, redestad
2016-04-08 12:26:47 -07:00
Bharadwaj Yadavalli
3d214817a2 Merge 2016-04-08 12:36:27 -04:00
Daniel D. Daugherty
3115b36c77 Merge 2016-04-07 10:03:48 -07:00
Bharadwaj Yadavalli
eb1715ed7c Merge 2016-04-05 15:39:38 -04:00
Alejandro Murillo
1d713a3760 Merge 2016-04-04 13:40:23 -07:00
Jamsheed Mohammed C M
8496a7c536 8067247: Crash: assert(method_holder->data() == 0 ...) failed: a) MT-unsafe modification of inline cache
Made invoker LambdaForm instance & its compiled form lifetime tightly coupled.

Reviewed-by: vlivanov
2016-04-04 02:07:28 -07:00
Jesper Wilhelmsson
2ad8a47677 Merge 2016-04-02 05:30:48 +02:00
Claes Redestad
7f353eb42e 8152641: Plugin to generate BMH$Species classes ahead-of-time
Reviewed-by: plevart, mchung, forax, vlivanov, jrose
2016-04-01 20:28:03 +02:00
Alejandro Murillo
e380336101 Merge 2016-03-31 14:25:38 -07:00