722 Commits

Author SHA1 Message Date
Harold Seigel
5b7ff7579c 8056900: Enhance NoClassDefFound exception messaging
Add text to the message explaining the cause of the exception

Reviewed-by: dholmes, sspitsyn, coleenp
2017-05-04 10:05:29 -04:00
Ioi Lam
c386cec7b1 8171392: Move Klass pointers outside of ConstantPool entries so ConstantPool can be read-only
Added _resolved_klasses; moved _resolved_references to ConstantPoolCache, etc.

Reviewed-by: coleenp, lfoltan, simonis, aph
2017-03-03 23:08:35 -08:00
Mikhailo Seledtsov
7ccad75888 8179243: [TESTBUG] CDS tests should be excluded from running with -UseCompressedOops
Used at-requires statements to exclude the affected tests

Reviewed-by: dholmes, jiangli, sspitsyn
2017-04-26 11:26:11 -07:00
Calvin Cheung
bed1dfb050 8179103: [Testbug] re-enable the runtime/SharedArchiveFile/BootAppendTests.java test
Added the java.corba to the set of root modules by using the --add-modules option. Used the CDSTestUtils.checkExec() for checking test results.

Reviewed-by: sspitsyn, jiangli, mseledtsov, iklam
2017-04-25 11:06:42 -07:00
Jesper Wilhelmsson
dd358a3bac Merge 2017-04-24 21:34:24 +02:00
Rachel Protacio
9947f147f6 8165896: Use "open" flag from JVM_DefineModule to export all module packages
Implemented VM side of open modules, which export all their packages unqualifiedly. Automatic modules and unnamed modules are treated internally as open modules.

Reviewed-by: alanb, hseigel, lfoltan
2017-04-24 12:08:28 -04:00
Harold Seigel
f9e13c6d3f 8178949: The split verifier allows anewarray to create an array of more than 255 dimensions
Add check to split verifier handling of anewarray opcode.

Reviewed-by: sspitsyn, gtriantafill, lfoltan
2017-04-24 08:47:38 -04:00
Lana Steuck
5ac911bb57 Merge 2017-04-22 00:21:28 +00:00
Erik Helin
2f0b3ae37d 8179064: TestInterpreterMethodEntries.java is missing -XX:+UnlockDiagnosticVMOptions
Reviewed-by: ctornqvi, gtriantafill
2017-04-21 08:24:48 +02:00
Lana Steuck
2293dc116c Merge 2017-04-13 20:35:45 +00:00
Roger Riggs
6f92b33cc9 8178347: Process and ProcessHandle getPid method name inconsistency
Reviewed-by: hseigel
2017-04-12 11:43:49 -04:00
Alan Bateman
a3ab143c64 8177530: Module system implementation refresh (4/2017)
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Reviewed-by: lfoltan, sspitsyn
2017-04-07 08:04:46 +00:00
Lana Steuck
71d06e676b Merge 2017-04-06 04:50:34 +00:00
Mikhailo Seledtsov
79793e9c64 Merge 2017-04-18 23:52:58 +02:00
Mikhailo Seledtsov
ca99a2ef45 8177728: [TESTBUG] Improve CDS test utils
Improved and expanded CDS test utils; updated CDS tests to use new utils.

Reviewed-by: jiangli, ccheung
2017-04-18 14:18:43 -07:00
Jesper Wilhelmsson
d507b8945c Merge 2017-04-18 22:25:33 +02:00
Lana Steuck
33f168f4ec Merge 2017-03-25 01:44:22 +00:00
Per Lidén
ecca839838 8178364: Command-line flags of type double should accept integer values
Reviewed-by: dholmes, sjohanss
2017-04-11 11:12:58 +02:00
Jesper Wilhelmsson
cc14920031 Merge 2017-04-06 22:58:55 +02:00
Mikael Gerdin
cc1aaab7e9 8176100: [REDO][REDO] G1 Needs pre barrier on dereference of weak JNI handles
Reviewed-by: kbarrett, coleenp, tschatzl
2017-03-22 15:25:21 +01:00
Robbin Ehn
6b15d9a82b 8177092: [TESTBUG] JMX test on MinimalVM fails after fix for 8176533
Reviewed-by: dholmes, mlarsson
2017-03-21 16:36:12 +01:00
Lana Steuck
b636d90917 Merge 2017-03-13 19:59:41 +00:00
Harold Seigel
958af9b3c3 8176471: [TESTBUG] runtime/modules/IgnoreModulePropertiesTest.java fails with OpenJDK: java.lang.RuntimeException: 'java version ' missing from stdout/stderr
Check for strings such as " version " and "Runtime Environment" that appear in 'java -version' for both open and closed builds.

Reviewed-by: coleenp
2017-03-13 16:23:17 -04:00
Harold Seigel
3064b3e35d 8176147: JVM should throw CFE for duplicate Signature attributes
Add the needed checks to ClasFileParser for duplicate Signature attributes.

Reviewed-by: dholmes, gtriantafill
2017-03-08 09:04:21 -05:00
Harold Seigel
b7121021af 8175383: JVM should throw NCDFE if ACC_MODULE and CONSTANT_Module/Package are set
If bad constant is seen, save it to throw CFE if ACC_MODULE is not in access_flags

Reviewed-by: dholmes, acorn, lfoltan, gtriantafill
2017-03-06 09:45:58 -05:00
Jesper Wilhelmsson
ca341236ca 8176054: [BACKOUT][REDO] G1 Needs pre barrier on dereference of weak JNI handles
Reviewed-by: kbarrett, mgerdin
2017-03-02 17:46:59 +01:00
Lana Steuck
7a3d0a1349 Merge 2017-02-23 17:22:44 +00:00
Harold Seigel
90bde9549e 8174725: JVM should throw NoClassDefFoundError if ACC_MODULE is set in access_flags
Check if ACC_MODULE is set, and if so, throw NoClassDefFoundError exception

Reviewed-by: dholmes, alanb, acorn, coleenp, lfoltan, gtriantafill
2017-02-21 09:53:49 -05:00
Mikael Gerdin
90fdff0e70 8175085: [REDO] G1 Needs pre barrier on dereference of weak JNI handles
Reviewed-by: kbarrett, dcubed, tschatzl
2017-02-17 13:16:54 +01:00
Daniel D. Daugherty
168714c982 Merge 2017-02-16 10:46:43 -08:00
Daniel D. Daugherty
298e3a2dcc 8175086: [BACKOUT] fix for JDK-8166188
Reviewed-by: kbarrett, jwilhelm, dcubed
2017-02-16 10:41:19 -08:00
Volker Simonis
854b2dd10a 8174856: [TESTBUG] Missing DefineClass instances
Reviewed-by: dholmes, ddmitriev
2017-02-16 09:40:51 +01:00
Kim Barrett
28477cf493 8166188: G1 Needs pre barrier on dereference of weak JNI handles
Add low tag to jweaks and G1 barrier for jweak loads.

Co-authored-by: Martin Doerr <martin.doerr@sap.com>
Co-authored-by: Volker Simonis <volker.simonis@sap.com>
Reviewed-by: mgerdin, mdoerr, pliden, dlong, dcubed, coleenp, aph, tschatzl
2017-02-15 22:19:13 -05:00
Jesper Wilhelmsson
be20d6384d Merge 2017-02-14 01:32:38 +01:00
Volker Simonis
236b9ba942 8173743: Failures during class definition can lead to memory leaks in metaspace
Reviewed-by: dholmes, coleenp, acorn, ddmitriev
2017-02-10 17:22:17 +01:00
Jesper Wilhelmsson
4519090804 Merge 2017-02-09 23:35:22 +01:00
Alan Bateman
9db79d57c8 8173393: Module system implementation refresh (2/2017)
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Reviewed-by: lfoltan, acorn, mchung
2017-02-10 09:03:55 +00:00
Lana Steuck
e02360463a Merge 2017-02-09 18:15:37 +00:00
David Holmes
fe4d1bb602 8173421: Obsolete and expired flags for JDK 10 need to be removed and related tests updated
Reviewed-by: lfoltan, mikael, dcubed
2017-01-31 19:26:50 -05:00
Brent Christian
c38ccc4fb0 8156073: 2-slot LiveStackFrame locals (long and double) are incorrect
Reviewed-by: coleenp, mchung
2017-01-31 11:50:42 -08:00
Jesper Wilhelmsson
9d799dc14f Merge 2017-01-24 00:30:28 +01:00
George Triantafillou
f0f0950183 8152206: Simplify jvmstat modules
Reviewed-by: alanb, mchung, hseigel
2017-01-19 10:56:32 -05:00
Jamsheed Mohammed C M
197ce5bafa 8166002: Emulate client build on platforms with reduced virtual address space
The default VM ergonomics on Windows/x86 (32-bit) are changed to client like.

Reviewed-by: kvn, iveresov
2017-01-17 21:38:07 -08:00
Harold Seigel
c95329970d 8172288: Fix Jigsaw related module/package error messages and throw correct exceptions
Reword error messages and throw IllegalStateExceptions where appropriate

Reviewed-by: alanb, acorn, lfoltan, gtriantafill
2017-01-13 07:19:03 -05:00
Rachel Protacio
f0136f8b69 8170821: Ensure access checks result in consistent answers
Added jtreg test to verify consistent access check results even when access is added between checks

Reviewed-by: hseigel, lfoltan
2017-01-12 14:04:08 -05:00
Andrew Haley
b9f711fc74 8172144: AArch64: Implement "JEP 270: Reserved Stack Areas for Critical Sections"
Reviewed-by: fparain
2017-01-11 15:09:58 +00:00
David Holmes
b72bbb7b30 8171815: [TESTBUG] Update expected failure message in runtime/modules/IgnoreModulePropertiesTest.java
Reviewed-by: mr
2016-12-20 20:42:15 -05:00
Jesper Wilhelmsson
3bfd349b45 Merge 2016-12-20 22:53:45 +01:00
Jesper Wilhelmsson
a6fc4ec215 Merge 2016-12-18 15:37:50 +01:00
Alan Bateman
6b87f1990b Merge 2016-12-16 08:18:00 +00:00