339 Commits

Author SHA1 Message Date
Joe Darcy
01ee88c8ae 6850612: Deprecate Class.newInstance since it violates the checked exception language contract
Reviewed-by: lancea, mullan, dfuchs
2016-05-03 10:40:54 -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
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
Joe Darcy
ce05d52251 8155792: Add @jls citations to java.lang.String
Reviewed-by: alanb
2016-04-30 16:08:48 -07: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
4d3fe6b205 8155215: java.lang.String concatenation spec is unnecessarily strong
Reviewed-by: abuckley, sherman, chegar
2016-04-29 23:15:15 +03: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
Daniel Fuchs
1e0d1458a2 8148568: LoggerFinder.getLogger and LoggerFinder.getLocalizedLogger should take a Module argument instead of a Class
Changes System.LoggerFinder methods to take a Module argument instead of a Class.

Reviewed-by: mchung
2016-04-27 18:04:16 +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
Stuart Marks
48a86ddf3e 8153330: deprecate Runtime.traceInstructions() and traceMethodCalls()
Reviewed-by: alanb, dholmes, mchung
2016-04-22 13:10:53 -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
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
Alejandro Murillo
2b6eedeff9 Merge 2016-04-18 20:19:39 -07:00
Alejandro Murillo
df4b562ac5 Merge 2016-04-18 15:39:47 -07:00
Stuart Marks
ba908a9037 8145468: update java.lang APIs with new deprecations
Reviewed-by: alanb, psandoz, lancea, forax, scolebourne, chegar, martin
2016-04-18 14:10:14 -07:00
Joe Darcy
965536262b 4851642: Add fused multiply add to Java math library
Reviewed-by: bpb, nadezhin
2016-04-15 10:14:57 -07: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
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
Roger Riggs
38659d2ed9 8086278: java/lang/ProcessHandle/TreeTest.java failed - ProcessReaper StackOverflowException
Increase reaper stack size by 50% to 48k

Reviewed-by: chegar, martin
2016-04-13 16:57:49 -04:00
Mandy Chung
c5f11b19c4 8153895: (proxy) redundant read edges to superinterfaces of proxy interfaces
Reviewed-by: sundar, plevart
2016-04-13 11:03:16 -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
Stuart Marks
4544652494 8145461: finalize and integrate @Deprecated annotation specification change
Reviewed-by: scolebourne, chegar, lancea
2016-04-11 11:45:30 -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
Peter Levart
589c46da46 8152115: (proxy) Examine performance of dynamic proxy creation
Redesign caching of dynamic Proxy classes

Reviewed-by: mchung
2016-04-11 10:55:03 +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
Claes Redestad
3312808cdb 8152951: Avoid calculating the reverse of StringConcatFactory$Recipe elements
Reviewed-by: shade, vlivanov
2016-03-29 18:27:33 +02:00