Commit Graph

592 Commits

Author SHA1 Message Date
Staffan Larsen
47ac075518 Merge 2014-11-13 08:02:38 +01:00
Eric McCorkle
935c33a50c 8062556: Add jdk tests for JDK-8058322 and JDK-8058313
Add tests for two hotspot reflection fixes.

Reviewed-by: dholmes
2014-11-10 15:06:13 -05:00
Eric McCorkle
1c54a00f75 8055063: Parameter#toString() fails w/ AIOOBE for ctr of inner class w/ generic type
Add getAllGenericParameters, which attempts to report generic parameters with synthetic parameters to the best extent possible with current classfile information.

Reviewed-by: jfranck
2014-11-10 11:23:23 -05:00
Martin Buchholz
84e99bc48e 8062771: Core reflection should use final fields whenever possible
Reviewed-by: psandoz, darcy
2014-11-06 13:18:44 -08:00
Claes Redestad
678e0c1b0d 8060130: Simplify the synchronization of defining and getting java.lang.Package
Reviewed-by: mchung, plevart, shade
2014-11-06 00:06:26 +01:00
Jaroslav Bachorik
543d65a194 8062896: TEST_BUG: java/lang/Thread/ThreadStateTest.java can't compile with change for 8058506
Reviewed-by: dholmes, sla
2014-11-05 09:49:20 +01:00
Stuart Marks
b23c39c07b 4354680: Runtime.runFinalization() silently clears interrupted flag in the calling thread
Reviewed-by: dholmes, chegar
2014-10-30 17:48:10 -07:00
Mattias Tobiasson
7abf72a2dc 8061960: java/lang/instrument/DaemonThread/TestDaemonThread.java regularly fails due to exceeded timeout
Move timeout parameter to correct place on command line

Reviewed-by: jbachorik
2014-10-28 11:45:31 +01:00
Jaroslav Bachorik
53a4f4cd62 8058506: ThreadMXBeanStateTest throws exception
Reviewed-by: egahlin, dholmes
2014-10-23 11:42:20 +02:00
Vladimir Ivanov
0c95b0fb5f 8060483: NPE with explicitCastArguments unboxing null
Reviewed-by: attila, lagergren
2014-10-24 08:22:17 -07:00
Jaroslav Bachorik
c603f42b91 8056143: interrupted java/lang/management/MemoryMXBean/LowMemoryTest.java leaves running process
Reviewed-by: sla, dholmes
2014-10-17 10:53:30 +02:00
Alejandro Murillo
946b0de6db Merge 2015-01-20 10:22:44 -08:00
Ivan Gerasimov
a7cd12f10a 8067951: System.loadLibrary cannot find library when path contains quoted entry
Reviewed-by: sherman, rriggs, alanb
2015-01-19 19:12:11 +03:00
Joe Darcy
9800aaa84a 8060077: Class.toGenericString specification doesn't mention array types
Reviewed-by: psandoz, jfranck
2015-01-16 14:04:27 -08:00
Martin Buchholz
5e65c0f984 8063147: Class.getFields spec should state that fields are inherited from superinterfaces
Reviewed-by: psandoz, chegar
2014-11-06 13:29:36 -08:00
Konstantin Shefov
30f7d127ad 8058733: [TESTBUG] java/lang/invoke/LFCaching/LFSingleThreadCachingTest.java and LFMultiThreadCachingTest.java failed on some platforms due to java.lang.VirtualMachineError
Reviewed-by: darcy, vlivanov
2014-10-10 21:28:35 +04:00
Konstantin Shefov
8bef42ee6a 8058695: [TESTBUG] Reinvokers with arity >253 can't be cached
Reviewed-by: iignatyev, vlivanov
2014-10-03 12:44:30 +04:00
Alejandro Murillo
9e10c63840 Merge 2014-09-26 01:40:33 -07:00
Alejandro Murillo
7268eec14e Merge 2014-09-19 08:55:47 -07:00
Sandipan Razzaque
24028df237 8043740: Doubles with large exponents overflow to Infinity incorrectly
Modify test of exponent overflow to account for subsequent decrement.

Reviewed-by: darcy
2014-09-22 10:41:45 -07:00
Konstantin Shefov
72e770ad77 8058728: TEST_BUG: Make java/lang/invoke/LFCaching/LFGarbageCollectedTest.java skip arrayElementSetter and arrayElementGetter methods
Reviewed-by: vlivanov, iignatyev, psandoz
2014-09-19 16:49:08 +04:00
Tobias Hartmann
37bfec7de8 8015774: Add support for multiple code heaps
Support for segmentation of the code cache. Separate code heaps are created and used to store code of different types.

Reviewed-by: kvn, iveresov, roland, anoll, egahlin, sla
2014-09-17 08:04:31 +02:00
Amy Lu
6f7645f43c 8058569: Update java/lang/invoke/lambda tests to eliminate dependency on sun.tools.jar.Main
Reviewed-by: dholmes, alanb
2014-09-17 23:27:59 -04:00
Vladimir Ivanov
21e3c51138 8058584: Ignore java/lang/invoke/LFCaching/LFGarbageCollectedTest until 8057020 is fixed
Reviewed-by: darcy, alanb
2014-09-16 23:04:13 +04:00
John Rose
da56d3f6d1 8050052: Small cleanups in java.lang.invoke code
Reviewed-by: vlivanov, psandoz
2014-09-10 19:19:47 +04:00
Vladimir Ivanov
0898161932 8049555: Move varargsArray from sun.invoke.util package to java.lang.invoke
Reviewed-by: psandoz, iignatyev
2014-09-10 19:19:47 +04:00
Claes Redestad
1dc4b5e2f8 8055251: Re-examine Integer.parseInt and Long.parseLong methods
Reviewed-by: alanb
2014-09-10 13:51:17 +01:00
Stefan Karlsson
a85101b24e 8057174: MemoryMXBean tests -- TEST FAILED: chunkSize: 6291456 is less than YOUNG_GEN_SIZE: 8388608
Reviewed-by: jbachorik, jwilhelm, dfuchs
2014-09-04 13:20:27 +02:00
Andrej Golovnin
fe519e6845 5043030: (reflect) unnecessary object creation in reflection
Use valueOf() instead of new for primitive wrappers.

Reviewed-by: jfranck
2014-09-09 12:04:31 +02:00
Joel Borggrén-Franck
febacf5319 8054987: (reflect) Add sharing of annotations between instances of Executable
Reviewed-by: darcy, plevart
2014-09-09 10:48:01 +02:00
Konstantin Shefov
881fa79cfe 8057719: Develop new tests for LambdaForm Reduction and Caching feature
Reviewed-by: iignatyev, vlivanov, psandoz
2014-09-12 22:33:09 +04:00
Konstantin Shefov
9e30841d28 8057707: TEST library enhancement in lib/testlibrary/jsr292/com/oracle/testlibrary/jsr292/Helper.java
Reviewed-by: iignatyev, vlivanov
2014-09-12 22:33:09 +04:00
Jaroslav Bachorik
82dd03274a 8037082: java/lang/instrument/NativeMethodPrefixAgent.java failing
Reviewed-by: sla
2014-08-25 18:17:24 +02:00
Amy Lu
10489a3c6c 8055852: Add test/java/lang/Math/DoubleConsts.java and FloatConsts.java
Reviewed-by: mchung, darcy
2014-08-22 18:54:20 -07:00
Amy Lu
ff93fd2cce 8042003: Update java/lang/Math tests to eliminate dependency on sun.misc.DoubleConsts and sun.misc.FloatConsts
Reviewed-by: mchung, darcy
2014-08-22 14:56:09 -07:00
Evgeniya Stepanova
cd181f5b09 8055393: [Testbug] Some tests are being executed and fail under profiles
Reviewed-by: mchung, dholmes
2014-08-21 22:07:14 -07:00
Staffan Larsen
cde8258b65 8055677: java/lang/instrument/RedefineBigClass.sh RetransformBigClass.sh start failing after JDK-8055012
Write dcmd output to separate files so it does not confuse the output.

Reviewed-by: ctornqvi, mgronlun
2014-08-21 13:09:28 +02:00
Stefan Karlsson
73e818fea9 8035939: java/lang/management/MemoryMXBean/MemoryManagement.java timed out on Linux-amd64
Reviewed-by: sla, brutisso, mgerdin
2014-08-19 12:18:09 +02:00
Christian Tornqvist
482e4a8859 8055012: [TESTBUG] NMTHelper fails to parse NMT output
Fixed the regular expression to parse the slightly changed output format of the new NMT implementation

Reviewed-by: olagneau, sla
2014-08-19 06:56:59 -07:00
Joel Borggrén-Franck
27bdc99451 8044629: (reflect) Constructor.getAnnotatedReceiverType() returns wrong value
Update javadoc and align implementation with new spec

Reviewed-by: psandoz
2014-08-12 10:16:58 +02:00
Claes Redestad
ea2632f91d 8054828: TEST_BUG: Typos in java/lang/Long/ParsingTest
Reviewed-by: alanb
2014-08-12 14:57:36 +01:00
Weijun Wang
bbaf4bdb09 6997010: Consolidate java.security files into one file with modifications
Reviewed-by: mullan, erikj
2014-08-11 11:11:55 +08:00
Ivan Gerasimov
6b6a37ee50 8051382: Optimize java.lang.reflect.Modifier.toString()
Reviewed-by: martin
2014-08-06 02:11:17 +04:00
Rob McKenna
063b7f5dc9 8030166: java/lang/ProcessBuilder/Basic.java fails intermittently: waitFor took too long
Reviewed-by: rriggs
2014-08-01 15:34:55 +01:00
Claes Redestad
59d0a64c19 8041972: Additional parse methods for Long/Integer
Reviewed-by: mduigou, psandoz
2014-07-12 01:36:25 +02:00
Xueming Shen
9f7993fe13 8042589: String.toLowerCase do not work for some concatenated strings
To include surrogate check in loop

Reviewed-by: mchung
2014-07-17 11:08:50 -07:00
Miroslav Kos
dc6a51546f 8041633: [TESTBUG] java/lang/SecurityManager/CheckPackageAccess.java fails with "In j.s file, but not in golden set: com.sun.activation.registries."
Adding newly restricted package to golden set in the test

Reviewed-by: asmotrak, coffeys, mullan
2014-05-20 16:02:57 +02:00
Alejandro Murillo
52c1d16db3 Merge 2014-07-11 17:04:52 -07:00
Joe Darcy
831451c5ba 8050051: Remove unneeded/obsolete -source/-target options in shell tests
Reviewed-by: alanb
2014-07-11 14:06:42 -07:00
Alejandro Murillo
747989869c Merge 2014-07-11 13:02:40 -07:00
Valerie Peng
efa54ce543 8043406: Change default policy for JCE providers to run with as few privileges as possible
Provide default permissions for crypto providers

Reviewed-by: mullan, vinnie
2014-07-10 22:44:58 +00:00
Serguei Spitsyn
ddccb62752 8048185: [TESTBUG] need a JTREG test for the fix of JDK-8042796 (OLD and/or OBSOLETE method(s) found)
Need to integrate the jtreg unit test for the fixed bug JDK-8042796

Reviewed-by: dcubed, coleenp
2014-06-26 03:26:20 -07:00
Erik Gahlin
723bfa2b58 8047368: Remove oracle.jrockit.jfr from open package.access list
Reviewed-by: sla, mullan
2014-07-07 15:06:00 +02:00
Jaroslav Bachorik
7b43631edc 8038794: java/lang/management/ThreadMXBean/SynchronizationStatistics.java fails intermittently
Reviewed-by: sla
2014-07-01 11:47:36 +02:00
Vladimir Ivanov
a58e574ffc 8046903: VM anonymous class members can't be statically invocable
Reviewed-by: jrose
2014-06-17 13:06:05 +04:00
Joel Borggrén-Franck
6445980a62 8029674: (reflect) getMethods returns default methods that are not members of the class
Filter out methods that have a more specific default method from result

Reviewed-by: darcy, dlsmith
2014-06-10 14:40:20 +02:00
Vladimir Ivanov
b2e8017412 8032400: JSR292: invokeSpecial: InternalError attempting to lookup a method
Reviewed-by: psandoz, jrose
2014-06-09 15:40:40 +04:00
Joel Borggrén-Franck
a1ae0af017 8039916: AnnotatedType.getType() of a Executable parameters may return wrong type
Reviewed-by: psandoz
2014-06-04 14:42:48 +02:00
Ivan Gerasimov
a9f575446d 8037866: Replace the Fun class in tests with lambdas
Reviewed-by: martin
2014-06-02 19:49:57 +04:00
Vladimir Ivanov
0c8a572009 8035186: j2se_jdk/jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java - assertion error
Reviewed-by: psandoz
2014-05-29 13:27:36 +04:00
Roger Riggs
20e26966e1 8003488: (process) Provide Process.getPid()
Add Process.getPid

Reviewed-by: alanb, martin, igerasim
2014-05-27 16:05:04 -04:00
Vladimir Ivanov
b47c2517ad 8037210: Get rid of char-based descriptions 'J' of basic types
Reviewed-by: jrose, psandoz, twisti
2014-02-24 18:11:55 +04:00
Katja Kantserova
c3d3305c76 8043520: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
Reviewed-by: sla, egahlin
2014-05-22 11:05:36 +02:00
Joel Borggrén-Franck
abd503efeb 8038994: AnnotatedType.getType() of a TypeVariable boundary without annotations return null
Reviewed-by: psandoz
2014-05-12 14:47:55 +02:00
Naoto Sato
d0dadf23c5 8041791: String.toLowerCase regression - violates Unicode standard
Reviewed-by: peytoia
2014-05-14 10:52:51 -07:00
Peter Levart
f7d1a7975b 8000975: (process) Merge UNIXProcess.java.bsd & UNIXProcess.java.linux (& .solaris & .aix)
Reviewed-by: alanb, rriggs, martin
2014-05-12 17:34:29 +02:00
Katja Kantserova
0c78d5f9e3 8034960: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
Reviewed-by: sla, alanb
2014-05-09 15:24:57 +02:00
Mandy Chung
da3781e49b 8035807: Convert use of sun.misc.BASE64Encoder/Decoder with java.util.Base64
Reviewed-by: alanb, vinnie, sherman, msheppar
2014-04-22 15:16:37 -07:00
Alexandre Iline
092e29980a 8039438: Some tests depend on internal API sun.misc.IOUtils
Remove dependency on sun.misc.IOUtils.readFully(InputStream, int, boolean)

Reviewed-by: alanb, mchung, chegar
2014-04-21 13:12:22 -07:00
Ivan Gerasimov
0688bf058d 8038982: java/lang/ref/EarlyTimeout.java failed again
Reviewed-by: mchung
2014-04-18 18:46:50 +04:00
Mattias Tobiasson
1121030e24 8030628: Update java/lang/management/MemoryMXBean tests to ignore GC setting by jtreg
Reviewed-by: mchung, jbachorik
2014-04-16 12:40:19 -07:00
Mattias Tobiasson
5b046a555f 8038822: java/lang/management/MemoryMXBean/LowMemoryTest2.sh still fails with OutOfMemoryError: Metaspace
Force a GC when usage above threshold. Add more logging.

Reviewed-by: dfuchs
2014-04-04 13:01:26 +02:00
Ivan Gerasimov
65a18434e7 8038333: TEST_BUG: java/lang/ref/EarlyTimeout.java fails with a non-adequate message
Reviewed-by: mchung
2014-04-02 12:17:25 +04:00
Igor Ignatyev
4fdcaf04d8 8038186: [TESTBUG] improvements of test j.l.i.MethodHandles
Reviewed-by: iveresov, twisti, vlivanov
2014-03-29 12:29:21 +04:00
Ivan Gerasimov
be3c17a489 6943190: TEST_BUG: some tests in java/lang/Runtime/exec have hard-coded path to shell commands
Reviewed-by: martin, rriggs, alanb
2014-03-24 14:14:03 +04:00
Volker Simonis
02186906ef 8037013: [TESTBUG] Fix test/java/lang/ClassLoader/Assert.sh on AIX
Reviewed-by: mchung, alanb
2014-03-18 11:10:53 +01:00
Ivan Gerasimov
d3271335ad 8034262: Test java/lang/ProcessBuilder/CloseRace.java fails
Reviewed-by: martin, dholmes
2014-03-12 21:45:20 +04:00
Vladimir Ivanov
9d59eb2da1 8036117: MethodHandles.catchException doesn't handle VarargsCollector right (8034120 failed)
Reviewed-by: jrose, twisti
2014-03-11 19:54:33 +04:00
Jaroslav Bachorik
c174f6339a 8034168: ThreadMXBean/Locks.java failed, blocked on wrong object
Reviewed-by: martin, dholmes
2014-03-11 14:18:46 +01:00
Mattias Tobiasson
8a385b110f 8031065: java/lang/management/MemoryMXBean/LowMemoryTest2.sh fails: OutOfMemoryError: Metaspace
Load classes until getUsageThresholdCount() > 0 instead of isUsageThresholdExceeded().

Reviewed-by: dfuchs, sjiang, sla
2014-03-04 09:35:54 +01:00
Robert Field
2e148fb065 8035776: Consistent Lambda construction
Reviewed-by: ahgross, briangoetz, dlsmith
2014-03-04 15:33:30 -08:00
Mattias Tobiasson
c96fd46a4c 6625574: java/lang/management/MemoryMXBean/Pending.java fails: "pending finalization = 0 but expected > 0"
Move local objs variable to a static public so the the optimizer will not remove it unexpectedly.

Reviewed-by: sla
2014-02-28 13:38:51 +01:00
Vladimir Ivanov
856f5c5823 8027827: Improve performance of catchException combinator
8034120: MethodHandles.catchException doesn't handle VarargsCollector right

Reviewed-by: lagergren, psandoz, jrose
2014-03-01 02:05:53 +04:00
Brent Christian
c92ff7d5e7 6835233: Fedora 9 jdk regression test failed: java/lang/instrument/ParallelTransformerLoader.sh
Remove @ignore from ParallelTransformerLoader.sh

Reviewed-by: alanb, sla, smarks
2014-02-28 10:27:54 -08:00
Ivan Gerasimov
e66ea0fddc 6853696: (ref) ReferenceQueue.remove(timeout) may return null even if timeout has not expired
Reviewed-by: mchung, mduigou, rriggs
2014-02-27 02:44:04 +04:00
Vladimir Ivanov
56bce7519d 8032585: JSR292: IllegalAccessError when attempting to invoke protected method from different package
8033278: Missed access checks for Lookup.unreflect* after 8032585

Reviewed-by: jrose, twisti
2014-02-21 17:12:23 +04:00
Lana Steuck
657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
Rob McKenna
77bcb60eee 7152892: some jtreg tests fail with permission denied
Reviewed-by: coffeys
2014-02-10 14:35:42 +00:00
Xueming Shen
8cdace2575 8032012: String.toLowerCase/toUpperCase performance improvement
Updated the implementation to improve the performance

Reviewed-by: psandoz, forax
2014-02-07 09:04:17 -08:00
Joe Darcy
1c57114347 8033416: Remove sun.misc.FpUtils
Reviewed-by: alanb, bpb, psandoz
2014-02-03 09:52:36 -08:00
Ivan Gerasimov
592907e7f2 8027348: (process) Enhancement of handling async close of ProcessInputStream
Reviewed-by: martin
2014-01-30 00:02:46 +04:00
Jaroslav Bachorik
9e782fae6d 8031701: java/lang/management/ThreadMXBean/Locks.java: Thread WaitingThread is expected to wait on Object but got null Thread.State = RUNNABLE
Reviewed-by: mchung, dsamersoff
2014-01-29 17:37:40 +01:00
Sunny Chan
9d9bc9f86d 7142035: assert in j.l.instrument agents during shutdown when daemon thread is running
Reviewed-by: sla
2014-01-28 09:33:39 -05:00
Daniel Smith
aa81fd4ead 8032697: Issues with Lambda
Reviewed-by: ahgross, briangoetz, dlsmith, rfield
2014-01-28 17:22:07 -08:00
Vladimir Kozlov
1981dde213 Merge 2014-01-28 14:58:15 -08:00
Vladimir Kozlov
57b7b831ae Merge 2014-01-28 14:57:41 -08:00
Robert Field
1b02cd3f12 8032711: Issue with Lambda in handling
8032704: Issues with lib perm in Lambda

Reviewed-by: jrose, ahgross, briangoetz
2014-01-28 12:53:56 -08:00
Mandy Chung
1e80ad98e4 6760902: inconsistent behavior in system class loader for classes and resources
Reviewed-by: psandoz, ksrini
2014-01-27 16:22:08 -08:00
Shanliang Jiang
7d09fd8b12 6980984: java/lang/management/MemoryMXBean/MemoryManagement is not robust when getMax() returns -1
Reviewed-by: jbachorik, dfuchs
2014-01-23 15:17:36 +01:00
Jaroslav Bachorik
f0a718ceb0 6309226: TEST: java/lang/management/ThreadMXBean/SynchronizationStatistics.java didn't check Thread.sleep
Reviewed-by: dholmes, mchung
2014-01-23 10:06:52 +01:00