Commit Graph

993 Commits

Author SHA1 Message Date
Andrey Dyachkov
6d3b1a78ad 8155102: (Process) Process.toString could include pid, isAlive, exitStatus
Reviewed-by: rriggs
2016-09-02 12:30:46 -04:00
Paul Sandoz
3bd5ebe2ef 8162108: Rename weakCompareAndSetVolatile to weakCompareAndSet
Reviewed-by: martin
2016-09-01 13:56:13 -07:00
Paul Sandoz
c073edc24c 8162106: Remove VarHandle.addAndGet
Reviewed-by: shade, redestad
2016-09-01 10:17:01 -07:00
Paul Sandoz
82d48917bb 8161444: VarHandles should provide access bitwise atomics
8162107: Add acquire/release variants for getAndSet and getAndAdd

Reviewed-by: shade, redestad
2016-09-01 10:16:57 -07:00
Alejandro Murillo
f2099ceae0 Merge 2016-08-31 13:50:02 -07:00
Alexandre Iline
3ff1d554b4 8164982: Fix legal notices in java/lang, java/net, java/util tests
Reviewed-by: darcy, iris
2016-08-31 09:46:50 -07:00
Alejandro Murillo
44fb1c5f24 Merge 2016-08-31 09:22:54 -07:00
Amy Lu
5c73d79296 8163934: Remove intermittent key from java/lang/ProcessBuilder/Zombies.java
Reviewed-by: darcy
2016-08-30 09:31:28 +08:00
Vivek Deshpande
1a188cf07a 8154122: Intrinsify fused mac operations
Added FMA intrinsics on x86

Reviewed-by: kvn, aph, darcy
2016-08-26 12:20:09 -07:00
Alejandro Murillo
542ac8a147 Merge 2016-08-26 10:02:50 -07:00
Robbin Ehn
001e52768a 8158628: test/java/lang/instrument/NativeMethodPrefixAgent.java: Error occurred during initialization of VM: Failed to start tracing backend
Reviewed-by: sla, gtriantafill
2016-08-24 20:51:37 +02:00
Robbin Ehn
dcb6b6c2e6 8164208: Update tests with redefine classes UL options and tags​
Reviewed-by: coleenp, gtriantafill
2016-08-24 20:38:22 +02:00
Claes Redestad
60754ca0fb 8164569: Generate non-customized invoker forms at link time
Reviewed-by: vlivanov
2016-08-24 16:11:21 +02:00
Christian Tornqvist
a5637c9afa 8164520: java/lang/ProcessHandle/Basic.java is missing @library tag
Reviewed-by: coleenp
2016-08-20 09:36:35 -04:00
Alejandro Murillo
ae1273fa3a Merge 2016-08-19 12:17:32 -07:00
Alejandro Murillo
3fe5cc875a Merge 2016-08-19 11:22:17 -07:00
Christian Tornqvist
0731886f09 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
Reviewed-by: coleenp, gtriantafill, mseledtsov, iignatyev, dholmes, dsamersoff
2016-08-19 10:09:53 -04:00
Alejandro Murillo
46babcb5b7 Merge 2016-08-22 08:27:10 -07:00
Peter Levart
b0aa08888c 8164547: Make java.lang.reflect.ClassLoaderValue public for internal use
Move it to jdk.internal.loader and make it public

Reviewed-by: shade, alanb
2016-08-22 13:16:51 +02:00
Michael Haupt
22e95f995a 8164102: MethodHandles.countedLoop/4 works incorrect for start/end = Integer.MAX_VALUE
Reviewed-by: redestad
2016-08-19 10:03:43 +02:00
Claes Redestad
9dcafe04f0 8164044: Generate corresponding simple DelegatingMethodHandles when generating a DirectMethodHandle at link time
Reviewed-by: vlivanov, mhaupt, shade
2016-08-18 19:00:39 +02:00
Alejandro Murillo
284b527560 Merge 2016-08-12 14:12:56 -07:00
Mandy Chung
e2a0ff3e0d 8136930: Simplify use of module-system options by custom launchers
Reviewed-by: alanb, ksrini, henryjen, sundar
2016-08-10 15:51:25 -07:00
Dmitrij Pochepko
91414d0dfc 8129523: java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java timeout
Reviewed-by: kvn
2016-08-08 11:32:11 +03:00
Alejandro Murillo
83f8829c06 Merge 2016-08-05 09:50:29 -07:00
Amy Lu
4710805267 8161024: Remove intermittent key from java/lang/Runtime/exec/LotsOfOutput.java
Reviewed-by: darcy
2016-08-04 15:45:24 +08:00
Roger Riggs
8bdadcb9dc 8160151: java/lang/ProcessBuilder/Zombies.java failed with error "1 zombies!"
Reviewed-by: dfuchs
2016-08-03 12:55:44 -04:00
Joe Darcy
ea95778f91 8162817: Annotation toString output not reusable for source input
Reviewed-by: plevart
2016-08-03 08:13:45 -07:00
Alejandro Murillo
41186dae1b Merge 2016-07-29 16:11:57 -07:00
Claes Redestad
0ae20fdfaa 8163476: java/lang/StackWalker/VerifyStackTrace.java fails after JDK-8163369
Reviewed-by: igerasim, chegar
2016-08-09 15:02:27 +02:00
Karen Kinnear
201f2252c2 8162340: Better class stream parsing
Check package validity

Reviewed-by: lfoltan, coleenp, dholmes
2016-07-27 08:33:15 -04:00
Joe Darcy
085f7a6907 8162539: Test fails because it expects a blank between method signature and throws exception
Reviewed-by: coleenp
2016-07-26 12:56:26 -07:00
Iris Clark
89602315a1 8161236: Runtime.Version.{compareTo, equals}IgnoreOpt should be renamed
Reviewed-by: alanb, rfield, ksrini
2016-07-21 07:42:05 -07:00
Peter Levart
f160991436 6378384: (reflect) subclass can’t access superclass’s protected fields and methods by reflection
Reviewed-by: mchung
2016-10-18 20:28:58 +02:00
Sergei Kovalev
ee0aa124a8 8167437: Fix module dependencies for tests that use internal API (java/lang)
Reviewed-by: alanb
2016-10-17 18:40:36 +03:00
Alejandro Murillo
4cdf3e05bf Merge 2016-07-18 13:33:23 -07:00
Alejandro Murillo
50862707c8 Merge 2016-07-18 09:38:08 -07:00
Michael Haupt
7112e19bd1 8161212: Test times out: java/lang/invoke/LoopCombinatorLongSignatureTest.java
Reviewed-by: redestad
2016-07-18 14:06:50 +02:00
Svetlana Nikandrova
fc83043219 8054213: Class name repeated in output of Type.toString()
Reviewed-by: darcy
2016-07-18 14:39:21 +03:00
Joe Darcy
a9f457a94e 8161500: Use getTypeName and StringJoiner in core reflection toString methods
Reviewed-by: redestad
2016-07-18 10:27:58 -07:00
Amy Lu
a80a380ddb 8161347: Mark java/lang/ProcessBuilder/Zombies.java as intermittently failing
Reviewed-by: rriggs
2016-07-18 13:13:52 +08:00
Alejandro Murillo
2bff7015a6 Merge 2016-07-15 09:05:36 -07:00
Volker Simonis
d09561f8c6 8160564: TEST: Add a test to check the implementation of VersionProps.versionNumbers()
Reviewed-by: mchung, redestad
2016-07-14 16:49:30 +02:00
Serguei Spitsyn
3a2d3df9ed 8159147: Add ClassLoader parameter to new ClassFileTransformer transform method
Add ClassLoader parameter to new ClassFileTransformer transform method

Reviewed-by: alanb, dholmes, dcubed, mchung
2016-07-09 21:41:14 -07:00
Amy Lu
caddf21da8 8132548: java/lang/ThreadGroup/Stop.java fails with "RuntimeException: Failure"
Reviewed-by: dholmes, martin, darcy
2016-07-13 10:26:11 +08:00
Daniel Fuchs
d5e84de014 8159245: Loggers created by system classes are not initialized correctly when configured programmatically from application code
Loggers of the same name now share the same configuration.

Reviewed-by: mchung, mli
2016-07-12 11:29:01 +01:00
Alexandre Iline
d1197dfc96 8158670: Fix @modules in java/lang/SecurityManager/CheckSecurityProvider.java
Enhanced test to detect if the corresponding module is present and update provider list.

Reviewed-by: mchung, valeriep
2016-07-08 00:50:28 +00:00
Joe Darcy
871852cb44 8152174: Type annotations with a missing type throw NullPointerException
Reviewed-by: jfranck
2016-07-07 10:16:47 -07:00
Shilpi Rastogi
aec121f999 8158169: MethodHandles.dropArgumentsToMatch(...)
Reviewed-by: psandoz, mhaupt
2016-07-07 09:51:47 +02:00
Michael Haupt
d09f7620fe 8160717: MethodHandles.loop() does not check for excessive signature
Reviewed-by: psandoz, redestad
2016-07-06 17:10:36 +02:00
Roger Riggs
1e4ea02a07 8160848: Add diagnostics to java/lang/ProcessBuilder/Zombies
Reviewed-by: martin
2016-07-06 10:33:17 -04:00
Alejandro Murillo
451f529750 Merge 2016-07-05 13:50:37 -07:00
Shilpi Rastogi
33695b874c 8158510: Add test cases to validate Annotation
Reviewed-by: alanb, psandoz, mhaupt
2016-07-05 12:44:28 +02:00
Michael Haupt
a06c5e0f57 8143211: provide bytecode intrinsics for loop and try/finally executors
Reviewed-by: psandoz, redestad, vlivanov
2016-07-04 10:08:18 +02:00
Alejandro Murillo
3689909db0 Merge 2016-07-01 16:50:37 -07:00
Vladimir Kozlov
b7a4c8d92a Merge 2016-06-24 15:06:50 -07:00
Paul Sandoz
3f0273a3c4 8154737: Rename VarHandle.compareAndExchangeVolatile to VarHandle.compareAndExchange
Reviewed-by: shade
2016-06-23 13:46:48 +02:00
Hamlin Li
efac3d44f2 8159879: Some typo and minor test bugs in ava/lang/module/ModuleReferenceTest.java and ConfigurationTest.java
Reviewed-by: alanb
2016-06-20 18:30:57 -07:00
Paul Sandoz
734dbe4089 8158039: VarHandle float/double field/array access should support CAS/set/add atomics
Reviewed-by: shade, vlivanov, darcy
2016-06-20 17:57:19 +02:00
Hamlin Li
2ac6a74d79 8159762: Some minor test bugs in java/lang/module/ModuleDescriptorTest.java
Reviewed-by: alanb
2016-06-18 16:50:19 -07:00
Roger Riggs
2fce52789b 8155808: Process.getInputStream().skip() method is faulty
For Process input streams, implement skip as read

Reviewed-by: prappo, dfuchs
2016-06-17 15:57:28 -04:00
Aleksey Shipilev
e663206d07 8157726: VarHandles/Unsafe should support sub-word atomic ops
Reviewed-by: psandoz, vlivanov, lagergren
2016-06-15 11:20:15 +03:00
Paul Sandoz
7dd146f072 8160439: Replace asserts in VarHandle.AccessMode with tests
Reviewed-by: vlivanov, rriggs, martin
2016-06-29 08:30:49 +02:00
Amy Lu
e926c77845 8156536: Remove intermittent key from TreeTest.java and move back to tier1
Reviewed-by: darcy
2016-06-28 14:39:09 +08:00
Xueming Shen
6223e843f9 8160312: ArrayIndexOutOfBoundsException when comparing strings case insensitive
Reviewed-by: rriggs
2016-06-27 13:57:24 -07:00
Chris Hegarty
c53f3cbcbe 8154017: Shutdown hooks are racing against shutdown sequence, if System.exit()-calling thread is interrupted
Reviewed-by: alanb, dholmes, shade
2016-06-24 06:47:32 +01:00
Joe Darcy
e48c0f85b2 8158430: Push tests for JDK-5040830
Reviewed-by: psandoz
2016-06-01 11:22:06 -07:00
Alan Bateman
8547893efe 8158456: ModuleDescriptor.read does not verify dependence on java.base in module-info.class
8159248: ModuleFinder.of not clear that FindException thrown if module descriptor cannot be derived for automatic module

Reviewed-by: chegar, mchung
2016-06-17 08:41:39 +01:00
Joe Darcy
b2795ca463 8071859: AnnotationInvocationHandler.equals(Object) return true when apply to annotation
Reviewed-by: mchung, chegar
2016-06-16 13:00:34 -07:00
Mandy Chung
99b0f7996c 8068764: java/lang/ClassLoader/ExtDirs.java failed with java.lang.IllegalThreadStateException with fastdebug
Reviewed-by: alanb
2016-06-15 11:56:09 -07:00
Alexandre Iline
431772cea7 8158855: Fix remaining module dependences in java/lang
Reviewed-by: alanb, mchung, amlu
2016-06-15 10:25:25 -07:00
Joe Darcy
0530bceffc 5041778: (ann) AnnotationFormatError if "default" Class type not found
Reviewed-by: jfranck
2016-06-12 12:14:52 -07:00
Shilpi Rastogi
41fa7638dd 8147585: Annotations with lambda expressions has parameter result in wrong behavior
Reviewed-by: psandoz, darcy, jfranck, vlivanov, mhaupt
2016-06-09 09:33:37 +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
Brent Christian
3af1187ad7 8152893: StackWalker#getCallerClass is not filtering hidden/ reflection frames when walker is configured to show hidden /reflection frames
Reviewed-by: mchung
2016-06-03 17:01:23 -07:00
Mandy Chung
74c27aab0f 8157892: StackFrame::getFileName returns null when a source file exists for native methods
8157977: getByteCodeIndex method from StackFrame does not return negative number when StackFrame is a native frame

Reviewed-by: dfuchs, bchristi
2016-06-02 16:39:14 -07:00
Alan Bateman
39e8310a9a 8156143: Module.getResourceAsStream throws unspecified SecurityException with module in custom Layer
Reviewed-by: chegar, mchung
2016-05-26 10:56:58 +01:00
Alan Bateman
bfb7fba79b 8156142: ModuleReader instances don't always throw NPE for passed null args
Reviewed-by: chegar, mchung
2016-05-25 20:12:32 +01:00
Alan Bateman
53e204dc49 8150668: Layer.defineModulesXXX with a Configuration containing java.base throws undocumented exception
Reviewed-by: chegar, mchung
2016-05-25 19:58:03 +01:00
Hamlin Li
f86a99352f 8151904: test/java/lang/StackWalker/VerifyStackTrace.java needs to handle update releases
Reviewed-by: dfuchs, mchung
2016-05-24 18:41:31 -07:00
Alan Bateman
fe609fd3cb 8157598: ModuleReader find returns incorrect URI when modular JAR is a multi-release JAR
Reviewed-by: chegar, mchung
2016-05-24 11:31:25 +01:00
Alan Bateman
ce04e9d9a2 8152650: ModuleFinder.compose should accept varargs
Reviewed-by: mchung
2016-05-21 08:01:03 +01:00
Brian Burkhalter
3497da36a2 8023217: Additional floorDiv/floorMod/multiplyExact methods for java.lang.Math
Add new methods with long, int signatures.

Reviewed-by: darcy, scolebourne
2015-09-29 17:28:44 -07:00
Brian Burkhalter
8c58aff49d 5100935: No way to access the 64-bit integer multiplication of 64-bit CPUs efficiently
Add methods multiplyFull() and multiplyHigh() to Math and StrictMath.

Reviewed-by: darcy
2016-05-20 14:41:41 -07:00
Brent Christian
0260528ef9 8029891: Deadlock detected in java/lang/ClassLoader/deadlock/GetResource.java
Properties now stores values in an internal ConcurrentHashMap

Reviewed-by: mchung, dholmes, plevart
2016-05-19 16:25:35 -07:00
Iris Clark
a950576f78 8144062: Move jdk.Version to java.lang.Runtime.Version
Reviewed-by: abuckley, alanb, forax, jjg, mchung, psandoz
2016-05-19 12:04:54 -07: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
Alexandre Iline
b67da697df 8156972: java/lang/reflect/Layer/LayerAndLoadersTest.java test requires jdk.compiler
Reviewed-by: alanb
2016-05-18 11:56:24 +01: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
Daniel Fuchs
a96b7f7d25 8139982: Re-examine java.management dependency on java.util.logging.LoggingMXBean
The logging MXBean implementation no longer implements java.util.logging.LoggingMXBean. java.lang.management.PlatformLoggingMXBean is used instead. java.util.logging.LoggingMXBean and java.util.logging.LogManager::getLoggingMXBean are now deprecated. Types and accessors defined in java.lang.management should be used instead.

Reviewed-by: mchung
2016-05-17 19:24:46 +02:00
Alejandro Murillo
8d9cf355fd Merge 2016-05-17 07:43:45 -07:00
Athijegannathan Sundararajan
38f007ac7f 8157146: Add debug printlns to tests FieldSetAccessibleTest and VerifyJimage.java
Reviewed-by: alanb, shade
2016-05-17 19:53:43 +05:30
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
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