Commit Graph

855 Commits

Author SHA1 Message Date
Jim Laskey
60de3c902e 8200380: String::lines
Reviewed-by: sundar, sherman, rriggs, psandoz
2018-05-22 12:04:05 -03:00
Claes Redestad
55ba3cad8b 8203352: Improve java implementation of Integer/Long.numberOfLeadingZeros
Co-authored-by: Ivan Gerasimov <ivan.gerasimov@oracle.com>
Reviewed-by: martin, igerasim
2018-05-22 14:44:18 +02:00
Jim Laskey
a455811dca 8200436: String::isBlank
Reviewed-by: sundar
2018-05-18 08:43:49 -03:00
Jim Laskey
7906014509 8200377: String::strip, String::stripLeading, String::stripTrailing
Reviewed-by: sundar, rriggs
2018-05-14 09:40:48 -03:00
Mandy Chung
0e1bd1f99d 8202113: Reflection API is causing caller classes to leak
Reviewed-by: alanb, plevart
2018-05-11 14:21:46 -07:00
Rachna Goel
78bd242097 8191410: Unicode 10
Upgrade to Unicode 10

Reviewed-by: naoto, rriggs, igerasim
2018-05-08 11:49:42 +05:30
David Holmes
8eb4c9db2a 8202686: Missing test case for 8200167 - final Object methods
Reviewed-by: psandoz
2018-05-07 19:31:39 -04:00
Vivek Theeyarath
31c128ef22 8195717: test java/lang/invoke/MethodHandlesTest timed out running testAsCollector1
Refactor MethodHandlesTest

Reviewed-by: psandoz
2018-05-03 04:18:22 -07:00
Vladimir Ivanov
3ecce1fe48 8202465: [C1] casts should not be eliminated for interface types
Reviewed-by: jrose, thartmann
2018-05-04 16:49:22 -07:00
Lois Foltan
2464e2b11e 8189916: Dynamic Constant support for Sparc
Change to the template interpreter to support dynamic constant on Sparc.

Reviewed-by: coleenp, psandoz
2018-05-04 12:14:09 -04:00
Mandy Chung
bd18ef4c18 8201793: (ref) Reference object should not support cloning
Reviewed-by: psandoz, kbarrett
2018-05-03 11:18:57 -07:00
John Rose
d05ed512ac 8200167: Validate more special case invocations
Co-authored-by: Vladimir Ivanov <vladimir.x.ivanov@oracle.com>
Co-authored-by: Tobias Hartmann <tobias.hartmann@oracle.com>
Reviewed-by: acorn, vlivanov, dholmes
2018-04-30 21:56:54 -04:00
Paul Sandoz
1a23a6264e 8194238: Trying exceptions in MethodHandles
Reviewed-by: jrose, vlivanov, ahgross
2018-01-24 16:44:31 -08:00
Paul Sandoz
9b54e6d766 8194233: Improve support for array handles
Reviewed-by: jrose, vlivanov, ahgross, rhalade
2018-01-22 13:27:28 -08:00
Paul Sandoz
d3760023e6 8199875: Require first parameter type of a condy bootstrap to be Lookup
Reviewed-by: jrose
2018-04-11 11:11:13 -07:00
Ivan Gerasimov
9fe989cc39 8200788: Optimal initial capacity of java.lang.VarHandle.AccessMode.methodNameToAccessMode
Reviewed-by: redestad
2018-04-07 17:07:13 -07:00
Roger Riggs
fa2a23256c 8200706: Better cleanup for open/test/jdk/java/lang/ProcessBuilder/DestroyTest.java
Reviewed-by: psandoz, lancea
2018-04-06 12:49:23 -04:00
Martin Buchholz
5c8c67c523 8200128: Fix some "annoations" typos
Reviewed-by: alanb
2018-04-05 09:36:01 -07:00
Ivan Gerasimov
277ac7e034 8200696: Optimal initial capacity of java.lang.Class.enumConstantDirectory
Reviewed-by: dholmes, redestad
2018-04-04 14:09:31 -07:00
Sean Mullan
ceea439679 8193032: Remove terminally deprecated SecurityManager APIs
Remove the checkTopLevelWindow, checkSystemClipboardAccess, checkAwtEventQueueAccess, and checkMemberAccess methods.

Reviewed-by: alanb, mchung, kcr
2018-04-04 11:26:10 -04:00
Jesper Wilhelmsson
aa69f8c75c Merge 2018-03-24 01:08:35 +01:00
Felix Yang
2a4a941922 8196668: revisit test SunPackageAccess and GrantedSunPackageAccess
Reviewed-by: mchung
2018-03-28 21:57:03 -07:00
Aleksey Shipilev
ab65d126af 8200241: [TESTBUG] java/lang/String/concat/ tests should not force source/target = 9 anymore
Reviewed-by: redestad, psandoz
2018-03-26 20:20:45 +02:00
Aleksey Shipilev
a048853756 8200118: [TESTBUG] String concat tests should test toString() application order
Reviewed-by: psandoz, redestad
2018-03-26 15:09:20 +02:00
Tobias Hartmann
55233a42f3 8199777: Deprecate -XX:+AggressiveOpts
Deprecate -XX:+AggressiveOpts and remove it from testing.

Reviewed-by: kvn, dholmes, shade
2018-03-22 08:39:51 +01:00
Jesper Wilhelmsson
1155614f99 Merge 2018-03-20 04:36:44 +01:00
Alexandre Iline
771a76dd9e Merge 2018-03-16 03:17:12 -07:00
Alexandre Iline
88af1f11ee 8199616: Fix @module declarations in tier1 tests
Reviewed-by: mchung, alanb
2018-03-16 03:15:35 -07:00
David Lloyd
acb3103b8f 8188240: Reflection Proxy should skip static methods
Reviewed-by: mchung, sundar, shade, plevart
2018-03-15 12:07:59 +01:00
Ben Walsh
de3604ea0c 8199462: Use Reference.reachabilityFence in direct ByteBuffer methods
Reviewed-by: psandoz, vlivanov, plevart
2018-03-12 16:09:18 -07:00
Naoto Sato
3d4edcc571 4993841: (str) java.lang.Character should have a toString(int) method
Reviewed-by: martin, rriggs, sherman, smarks
2018-03-05 08:50:47 -08:00
Joe Wang
5a7aff9897 8137326: Methods for comparing CharSequence, StringBuilder, and StringBuffer
Reviewed-by: rriggs, smarks, sherman, tvaleev
2018-03-01 15:31:04 -08:00
Jim Laskey
b4d4d8f66c 8197594: String#repeat
Reviewed-by: smarks, psandoz, plevart, rriggs, redestad
2018-03-01 15:45:51 -04:00
Mandy Chung
3414903aba 8198253: ThreadInfo.from(CompositeData) incorrectly accepts CompositeData with missing JDK 6 attributes
Reviewed-by: dfuchs, jmanson
2018-02-28 17:11:57 -08:00
Jesper Wilhelmsson
1739105160 Merge 2018-02-25 04:59:43 +01:00
Leonid Mesnik
2471caab08 8197901: Crash during GC when logging level is debug
Reviewed-by: dholmes, coleenp
2018-02-23 13:55:49 -08:00
Jesper Wilhelmsson
aa9cf33c1e Merge 2018-02-19 04:50:50 +01:00
Alan Bateman
8f56ea639d 8196830: publicLookup().findVirtual should not return method handle to AccessibleObject.setAccessible
Reviewed-by: mchung, psandoz
2018-02-24 08:26:53 +00:00
Mandy Chung
4bb064c62d 8198249: Remove deprecated Runtime::runFinalizersOnExit and System::runFinalizersOnExit
Reviewed-by: dholmes, alanb, smarks
2018-02-23 12:10:56 -08:00
Paul Sandoz
2ab07cc314 8197944: Condy tests fails on Windows
Reviewed-by: dholmes
2018-03-13 15:29:55 -07:00
Paul Sandoz
4954362d29 8199342: The constant pool forgets it has a Dynamic entry if there are overpass methods
Reviewed-by: lfoltan, acorn
2018-03-08 14:33:57 -08:00
Ekaterina Pavlova
4b55c80b4d 8198924: [Graal] java/lang/StackWalker/LocalsAndOperands.java timeouts with Graal
Reviewed-by: bchristi, mchung
2018-03-12 13:54:55 -07:00
Jesper Wilhelmsson
51ab999e0e Merge 2018-02-13 23:38:34 +01:00
Martin Doerr
eb3ec99500 8196786: [PPC64+s390] ConstantDynamic support
Reviewed-by: psandoz, dsamersoff
2018-02-13 17:38:03 +01:00
Jesper Wilhelmsson
9beff15bed Merge 2018-02-10 09:25:35 +01:00
Paul Sandoz
c9757ad448 8196960: Exceptions in ConstantBootstrapsTest.java on SPARC
Reviewed-by: lfoltan
2018-02-07 12:37:30 -08:00
Mandy Chung
9caf4aeb12 8168682: jdk/test/java/lang/ClassLoader/forNameLeak/ClassForNameLeak.java fails with -Xcomp
Reviewed-by: bchristi
2018-02-12 11:40:19 -08:00
Lance Andersen
987c3a2d87 8190378: Removal of CORBA and Java EE modules
Reviewed-by: rriggs, alanb, mchung, erikj, goetz
2018-02-10 07:06:16 -05:00
Jesper Wilhelmsson
d7dd9d1027 Merge 2018-02-05 23:12:03 +01:00
Jesper Wilhelmsson
44ab590f44 Merge 2018-02-05 23:12:03 +01:00
Tobias Hartmann
e5131d5ceb 8195695: NativeLibraryTest.java fails w/ 'Expected unloaded=1 but got=0'
Exclude test from Graal testing.

Reviewed-by: kvn, dholmes, mchung
2018-02-05 07:20:26 +01:00
Amy Lu
2bf1bf3afb 8195981: Move some tests to OpenJDK for jdk_lang test group
Reviewed-by: alanb, mchung
2018-02-05 11:12:09 +08:00
Ivan Gerasimov
831b32b2a9 8196740: Character.digit(int,int) returns wrong value for out of range radix
Reviewed-by: redestad
2018-02-03 21:12:37 -08:00
Lana Steuck
414e05f6d7 Merge 2018-02-02 01:52:03 +00:00
Paul Sandoz
00b3f917ac 8195694: ConstantBootstraps.invoke does not preserve variable arity
Reviewed-by: jrose
2018-02-01 14:19:04 -08:00
Paul Sandoz
2b3d492b43 8196533: Update CondyNestedTest.java to compile jcod file
Reviewed-by: mchung
2018-01-31 17:43:46 -08:00
Paul Sandoz
4b5ffe70d9 8187742: Minimal set of bootstrap methods for constant dynamic
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: jrose, forax
2018-01-31 11:20:36 -08:00
Paul Sandoz
30df14bd0a 8195970: Crash passing null to a VarHandle
Reviewed-by: mchung, alanb
2018-01-26 09:35:15 -08:00
Brent Christian
f61a078bd2 8194879: Runtime.Version parses string which does not conform to spec without throwing IAE
Reviewed-by: alanb, iris, rriggs
2018-01-17 16:15:15 -08:00
Mandy Chung
869f9e2ed0 8194554: filterArguments runs multiple filters in the wrong order
Reviewed-by: psandoz, jrose
2018-01-17 15:17:50 -08:00
Lana Steuck
aad1a3592c Merge 2018-01-16 22:24:20 +00:00
Dmitry Samersoff
ac524f2837 8190428: Minimal Dynamic Constant support for AArch64
AArch64 specific code for 8186046

Reviewed-by: aph, psandoz
2018-02-10 09:48:51 +00:00
Lana Steuck
c8c8cd7238 Merge 2018-01-04 04:22:28 +00:00
Amy Lu
fc48aa8618 8194959: Correct test tag to move bugid from @test to @bug
Reviewed-by: sundar
2018-01-12 14:09:50 +08:00
Jesper Wilhelmsson
8650bbcf47 Merge 2017-12-20 20:55:07 +01:00
Mandy Chung
64cef020e7 8193780: (ref) Remove the undocumented "jdk.lang.ref.disableClearBeforeEnqueue" system property
Reviewed-by: alanb
2017-12-21 15:04:45 -08:00
Paul Sandoz
038b5f571c 8191913: Bump classfile version number to 55
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Reviewed-by: dholmes, darcy
2017-12-20 09:14:06 -08:00
Mark Reinhold
0214135fde 8192833: JEP 322: Time-Based Release Versioning
Reviewed-by: erikj, ihse, iris, mchung, psandoz, tbell
2017-12-13 17:28:24 -08:00
Jesper Wilhelmsson
e81038299e Merge 2017-12-08 23:43:25 +01:00
Jesper Wilhelmsson
7c3a956755 Merge 2017-12-07 10:18:31 +01:00
Vladimir Kozlov
c11f132abe 8191788: add jdk.internal.vm.compiler to --limit-modules if -Djvmci.Compiler=graal is in the command line
Skip tests which use --limit-modules when Graal is used as JIT compiler.

Reviewed-by: alanb, mchung, dholmes, ccheung, dnsimon
2017-12-13 11:59:55 -08:00
Jesper Wilhelmsson
42d9cdb7a0 Merge 2017-12-08 23:43:25 +01:00
Alan Bateman
800f9ab58a 8191867: Module attribute in 54.0+ class file cannot contains a requires java.base with ACC_TRANSITIVE or ACC_STATIC_PHASE
Reviewed-by: psandoz, mchung
2017-12-07 16:45:19 +00:00
Tobias Hartmann
23424e9e0a 8191360: Lookup of critical JNI method causes duplicate library loading with leaking handler
Unload shared library after lookup to avoid keeping it live.

Reviewed-by: vlivanov, dholmes
2017-12-05 08:27:54 +01:00
Sean Mullan
4da03ba907 8186535: Remove deprecated pre-1.2 SecurityManager methods and fields
Reviewed-by: alanb, coleenp, hseigel, mchung
2017-11-30 07:54:28 -05:00
Calvin Cheung
6feaa2cb69 8191653: Test failures in BootAppendTests - missing jdk.internal.vm.compiler module
Backout the fix for 8190975

Reviewed-by: iklam, kvn
2017-11-22 16:08:39 -08:00
Jesper Wilhelmsson
bc00f6b9b6 Merge 2017-11-25 04:36:43 +01:00
Paul Sandoz
012e103e91 8187237: Need to define the behaviour for 0 and 1 argument method type in StringConcatFactory.makeConcat
8186737: Lookup argument for StringConcatFactory.makeConcat & makeConcatWithConstants cannot have privileges less than PRIVATE

Reviewed-by: mchung
2017-11-29 12:39:59 -08:00
Ekaterina Pavlova
d7f5a6e86e 8190975: [Graal] Tests which run with "--limit-modules java.base" could fail when Graal is used as JIT
Reviewed-by: dholmes, alanb
2017-11-20 14:02:10 -08:00
Mandy Chung
52693f1ca5 8157246: MHs.arrayLength, arrayElementGetter/Setter, arrayConstructor need to specify invocation-time behavior
Reviewed-by: psandoz, rriggs
2017-11-17 08:12:02 -06:00
Michael Dardis
3160d8e270 8190987: Package.getImplementationVersion returns null even if implementation version is non-null
Reviewed-by: mchung, rriggs
2017-11-16 22:51:15 -06:00
Jesper Wilhelmsson
88d610826b Merge 2017-11-16 01:11:32 +01:00
Claes Redestad
433bf8ab65 8184777: Factor out species generation logic from BoundMethodHandle
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: vlivanov
2017-11-16 00:58:50 +01:00
Jesper Wilhelmsson
fdee542113 Merge 2017-11-11 01:21:09 +01:00
Roger Riggs
0e776aa080 8190884: java/lang/Runtime/exec/LotsOfOutput fails intermittently
Reviewed-by: lancea, mchung
2017-11-08 09:18:15 -05:00
Mandy Chung
25032bad54 8164512: Replace ClassLoader use of finalizer with phantom reference to unload native library
Reviewed-by: alanb, bchristi, kbarrett, dholmes, plevart
2017-11-06 17:48:00 -08:00
Roger Riggs
46d230c9cc 8187281: Remove intermittent from OnExitTest
Reviewed-by: lancea
2017-11-06 17:35:40 -05:00
Alan Bateman
7e9984c112 8182742: ClassLoader.getResourceXXX throws NPE when ClassLoader created by defineModulesWithXXX
Reviewed-by: redestad, mchung
2017-12-06 08:36:09 +00:00
Brent Christian
1a819fcd7a 8187222: ClassLoader.getSystemClassLoader not clear if recursive initialization leads to ISE or unspecified error
Reviewed-by: alanb, mchung
2017-12-05 09:44:32 -08:00
Paul Sandoz
3e26f1114d 8186961: Class.getFields() does not return fields of previously visited super interfaces/classes
Reviewed-by: mchung, redestad
2017-12-01 17:06:09 -08:00
Jesper Wilhelmsson
b97f1bcb37 Merge 2017-10-30 21:23:10 +01:00
Kumar Srinivasan
105a51b96d 8190287: Update JDK's internal ASM to ASMv6
Reviewed-by: alanb, mchung, sundar
2017-11-02 13:18:23 -07:00
Ujwal Vangapally
6eeb777697 8044122: MBean access to the PID
Added new API getPid for getting process ID

Reviewed-by: mchung, rriggs
2017-11-07 22:05:44 -08:00
Jesper Wilhelmsson
3c76c33dba Merge 2017-11-07 08:47:47 +01:00
Jesper Wilhelmsson
7884ab9ccf Merge 2017-10-30 21:23:10 +01:00
Mandy Chung
34c9d598c7 8187089: StringConcatFactory.makeConcat & makeConcatWithConstants should throw StringConcatException if parameter slot count is over 200
Reviewed-by: rriggs, shade
2017-10-26 16:57:35 -07:00
Naoto Sato
ab49e12b7f 8189291: Test policy should extend the default system policy
Reviewed-by: mchung
2017-10-24 08:56:30 -07:00
Paul Sandoz
e55a05957d 8186209: Tool support for ConstantDynamic
8186046: Minimal ConstantDynamic support
8190972: Ensure that AOT/Graal filters out class files containing CONSTANT_Dynamic ahead of full AOT support

Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: acorn, coleenp, kvn
2017-09-08 10:46:46 -07:00
Ujwal Vangapally
96d0817455 8185003: JMX: Add a version of ThreadMXBean.dumpAllThreads with a maxDepth argument
Added two new API's to limit the stack trace depth

Reviewed-by: mchung, dfuchs, rriggs, egahlin
2017-10-05 01:31:53 -07:00
Mandy Chung
5d986605ca 8186050: StackFrame should provide the method signature
Reviewed-by: alanb, bchristi, forax, plevart
2017-09-29 11:33:08 -07:00
Paul Sandoz
999343e352 8187688: Additional tests for MethodHandle.invokeWithArguments
Reviewed-by: redestad
2017-09-27 10:24:40 -07:00
Hamlin Li
9f1f9587cb 8187376: test issue in java/lang/invoke/VarHandles/VarHandleBaseTest.java
Reviewed-by: psandoz
2017-09-26 12:47:49 +08:00
John R Rose
f98aab0db9 8185993: MethodHandle.invokeWithArguments jumbo-arity
Reviewed-by: psandoz, vlivanov
2017-09-22 15:28:16 -07:00
Amy Lu
f22dd8323b 8184329: Refactor java/lang/ClassLoader shell tests to java
Reviewed-by: mchung
2017-09-22 16:38:54 +08:00
Erik Joelsson
3789983e89 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00