897 Commits

Author SHA1 Message Date
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
Daniel Fuchs
172839f24f 8156153: java/lang/System/LoggerFinder/jdk/DefaultLoggerBridgeTest/DefaultLoggerBridgeTest.java fails with java.lang.RuntimeException
Runs each scenario in its own VM to avoid unwanted interaction and start from a clean slate.

Reviewed-by: mchung
2016-05-11 19:23:58 +02: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
Jaroslav Kamenik
553aa43136 8155795: Optimize Integer/Long.reverse by using reverseBytes
Reviewed-by: redestad, shade
2016-05-10 13:28:00 +02: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
Serguei Spitsyn
427a2549f6 8156147: NPE in InstrumentationImpl.transform when loading classes from -Xbootclasspath/a
Use the jdk.internal.loader.Bootloader if the loader argument is null

Reviewed-by: alanb
2016-05-06 12:45:04 -07:00
Vladimir Ivanov
905fb139d7 Merge 2016-05-06 18:21:41 +03:00
Alejandro Murillo
775606f20c Merge 2016-05-06 06:23:30 -07:00
Alexandre Iline
cbf4406738 8154182: Fix java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java to only use available modules
Reviewed-by: alanb, mchung
2016-05-05 13:57:47 -07:00
Alejandro Murillo
ec7cfcc7c6 Merge 2016-05-05 12:35:54 -07:00
Brent Christian
b52c5bbd67 8147039: Incorrect locals and operands in compiled frames
Implement stack walking using javaVFrame instead of vframeStream

Reviewed-by: mchung, vlivanov
2016-05-05 11:44:01 -07:00
Harsha Wardhana B
182152c385 8154166: java/lang/management/MemoryMXBean/ResetPeakMemoryUsage.java fails with RuntimeException
Fix the RuntimeException issue

Reviewed-by: jbachorik
2016-05-05 01:52:03 -07: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
Max Ockner
3dfed24a47 8154110: Update class* and safepoint* logging subsystems
Refactored logging tags in class and safepoint subsystems.

Reviewed-by: coleenp, rehn, hseigel
2016-04-29 22:39:44 -04: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
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
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
Amy Lu
b909478b3d 8152936: java/lang/Class/GetPackageTest.java needs update to work with newer testng
Reviewed-by: alanb
2016-04-21 14:56:40 +08: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
df4b562ac5 Merge 2016-04-18 15:39:47 -07:00
Alan Bateman
b37e45d796 8154159: rmic should not have a supported entry point
Reviewed-by: rriggs, chegar
2016-04-18 16:18:56 +01: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
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
Alejandro Murillo
b84738d2e3 Merge 2016-04-11 14:21:27 -07:00
Paul Sandoz
6b661410d3 8152645: VarHandle lookup access control tests
Reviewed-by: mhaupt, redestad
2016-04-11 19:00:49 +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
Chris Hegarty
25b68378f6 8153737: Unsupported Module
Reviewed-by: alanb, mchung, psandoz
2016-04-09 20:12:13 +01:00
Brent Christian
74f12569ec 8153123: Streamline StackWalker code
Reviewed-by: coleenp, dfuchs, mchung, redestad
2016-04-08 12:26:47 -07:00
Daniel D. Daugherty
3115b36c77 Merge 2016-04-07 10:03:48 -07:00
Alejandro Murillo
9f3b6be989 Merge 2016-04-05 20:02:21 -07:00
Alan Bateman
4af24b6def 8153370: Drop use of old style -XaddExports from tests
Reviewed-by: mchung
2016-04-05 21:18:01 +01:00
Alejandro Murillo
e380336101 Merge 2016-03-31 14:25:38 -07:00
Daniel Fuchs
da3998f139 8150840: Add an internal system property to control the default level of System.Logger when java.logging is not present
Reviewed-by: mchung, rriggs
2016-03-25 17:12:18 +01:00