Commit Graph

53 Commits

Author SHA1 Message Date
Harold Seigel
e2b0679319 8177741: Fix hotspot tests to use --patch-module instead of -Xmodule
Change InMemoryJavaCompiler.compile() to accept --patch-module instead of -Xmodule, and then change appropriate tests.

Reviewed-by: coleenp, gtriantafill
2017-08-10 11:12:13 -04:00
Goetz Lindenmaier
7635d5162e 8185436: jtreg: introduce @requires property to disable cds tests
Fix CompressedClassPointers test to succeed also if cds is not available.

Reviewed-by: jiangli, mseledtsov, iklam
2017-08-03 10:24:34 +02:00
Vladimir Kozlov
62b03921aa Merge 2017-07-05 18:14:48 -07:00
Alan Bateman
2f378477c4 8181087: Module system implementation refresh (6/2017)
Reviewed-by: sspitsyn, hseigel
2017-06-16 09:20:23 -07:00
Igor Ignatyev
116ba945dc 8180037: move jdk.test.lib.InMemoryJavaCompiler to a separate package
Reviewed-by: mseledtsov, vlivanov
2017-05-11 14:03:50 -07:00
Alan Bateman
aefdcda532 8178380: Module system implementation refresh (5/2017)
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Reviewed-by: lfoltan, hseigel, mchung, sspitsyn
2017-05-04 07:26:28 +00:00
Jesper Wilhelmsson
d599f0d03a Merge 2017-05-23 17:51:35 +02:00
Vladimir Kozlov
063286a618 Merge 2017-05-12 13:14:25 -07: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
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
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
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
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
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
Alan Bateman
6b87f1990b Merge 2016-12-16 08:18:00 +00:00
Harold Seigel
94c51468b8 8170987: Module system implementation refresh (12/2016)
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Reviewed-by: lfoltan, coleenp, mchung
2016-12-16 05:46:52 +00:00
Jesper Wilhelmsson
f09c55c0d8 Merge 2016-12-08 15:49:29 +01:00
Jiangli Zhou
bae7bbd382 8168797: do not load any archived classes from a patched module
Add new runtime shared class visibility check to ensure shared classes from patched module are not loaded at runtime.

Reviewed-by: acorn, ccheung, hseigel, iklam, lfoltan
2016-12-19 13:54:33 -05:00
Jesper Wilhelmsson
5597cd6698 Merge 2016-12-08 15:49:29 +01:00
Alan Bateman
988690303a 8169069: Module system implementation refresh (11/2016)
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: George Triantafillou <george.triantafillou@oracle.com>
Reviewed-by: lfoltan, acorn, ctornqvi, mchung
2016-12-01 08:56:41 +00:00
Rachel Protacio
3f2be39bb3 8165550: Add class loader names to ClassCastException message
Adds new format of class loader names to VM ClassCastException messages

Reviewed-by: dholmes, mchung, lfoltan
2016-11-17 16:28:45 -05:00
Calvin Cheung
c5dc50c03f 8166931: Do not include classes which are unusable during run time in the classlist file
Added check to exclude classes found in the --patch-module list

Reviewed-by: jiangli, lfoltan, iklam
2016-10-18 16:15:03 -07:00
Rachel Protacio
eb6d311b66 8154791: Xlog classload too redundant msgs info/debug
Removed redundant information from class+load UL messages, ensured side-by-side printing of different levels for same class, cleaned up code

Reviewed-by: iklam, dholmes
2017-05-08 09:45:24 -04: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
Jesper Wilhelmsson
d507b8945c Merge 2017-04-18 22:25:33 +02:00
Jesper Wilhelmsson
cc14920031 Merge 2017-04-06 22:58:55 +02:00
Coleen Phillimore
35e8433c1c Merge 2017-03-14 14:07:24 -04:00
Harold Seigel
8a5f33bd16 8172514: Stop checking for duplicate packages in the JVM_DefineModule() package list
Use GrowableArray append() instead of append_if_missing() to stop searching for duplicates

Reviewed-by: redestad, coleenp, dholmes, gtriantafill
2017-03-10 08:04:17 -05:00
Harold Seigel
5485a03844 8172307: Remove ununsed JVM API JVM_GetModuleByPackageName()
Remove get_module_by_package_name() etc., and unneeded test.

Reviewed-by: sspitsyn, gtriantafill
2017-03-01 07:59:20 -05:00
Mandy Chung
7bcdb60438 8167511: IgnoreModulePropertiesTest.java needs update for JDK-8162401
Reviewed-by: lfoltan, hseigel
2016-10-13 08:00:10 -07:00
Calvin Cheung
f9707ab4cd 8164011: --patch-module support for CDS
Allows the use of the --patch-module vm option with CDS. However, classes found in --patch-module during dump time will not be archived.

Reviewed-by: iklam, dcubed, lfoltan
2016-09-20 10:37:19 -07:00
Harold Seigel
37c77e03d3 8165634: Support multiple --add-modules options on the command line
Use numbered properties for --add-module options so that multiple --add-module options can be supported.

Reviewed-by: coleenp, gziemski, lfoltan, ccheung
2016-09-10 08:25:51 -04:00
Harold Seigel
0fd1f32873 8162412: Ignore any System property specified as -Djdk.module that matches reserved module system properties
Change the checks for module related properties to look for specific properties, not just jdk.module

Reviewed-by: coleenp, gziemski, ddmitriev
2016-08-31 10:27:32 -04:00
Christian Tornqvist
ad85e18f23 8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
Reviewed-by: coleenp, gtriantafill, mseledtsov, iignatyev, dholmes, dsamersoff
2016-08-19 10:06:30 -04:00
Harold Seigel
d7ea24479b 8136930: Simplify use of module-system options by custom launchers
Reviewed-by: coleenp, lfoltan, mchung
2016-08-10 15:48:04 -07:00
Lois Foltan
6066d30e17 8160487: JVM should validate a module by checking for an instance of java.lang.reflect.Module
Correct the checking of an instance of java.lang.reflect.Module to validate a module

Reviewed-by: alanb, coleenp, redestad
2016-07-28 09:57:49 -04:00
Lois Foltan
92eb334c91 8159262: Walking PackageEntry Export and ModuleEntry Reads Must Occur Only When Neccessary And Wait Until ClassLoader's Aliveness Determined
Fixed an issue in class unloading to delay walk until class loader's aliveness is determined of modularity lists to remove dead modules

Reviewed-by: coleenp, dholmes, sspitsyn, zgu
2016-06-28 10:11:01 -04:00
Lois Foltan
f3741800fe 8156871: Possible concurrency issue with JVM_AddModuleExports
Need for single PackageEntry flag to determine a package's unqualifed export state.

Reviewed-by: acorn, ctornqvi, dholmes, jiangli
2016-06-16 13:34:32 -04:00
George Triantafillou
ada2d65793 8159255: [TESTBUG] XpatchJavaBase.java compilation failure
Reviewed-by: lfoltan, hseigel, ddmitriev
2016-06-14 14:35:34 -04:00
Alan Bateman
8fe0416551 8152650: ModuleFinder.compose should accept varargs
Reviewed-by: mchung
2016-05-21 08:00:33 +01:00
Joseph Provino
24fae49324 8156851: Compilation error compiling XpatchDupModule.java and XpatchDupJavaBase.java
Test needs @modules java.base/jdk.internal.misc

Reviewed-by: jwilhelm, drwhite
2016-05-12 11:54:03 -04:00
Alejandro Murillo
b68bd82d9b Merge 2016-05-06 06:12:56 -07:00
Alan Bateman
a503db18fb 8154956: Module system implementation refresh (4/2016)
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Reviewed-by: acorn, jiangli, ccheung, hseigel
2016-05-03 09:09:20 +01:00
Dmitry Samersoff
85deb5aa7e 8154258: [TESTBUG] Various serviceability tests fail compilation
Replace sun.misc.Unsafe with jdk.internal.misc.Unsafe

Reviewed-by: chegar, kvn
2016-05-01 12:47:00 +03:00
Max Ockner
da0fe9d476 8154110: Update class* and safepoint* logging subsystems
Refactored logging tags in class and safepoint subsystems.

Reviewed-by: coleenp, rehn, hseigel
2016-04-29 22:40:51 -04:00
Rachel Protacio
09add35155 8152844: JVM InstanceKlass Methods For Obtaining Package/Module Should Be Moved to Klass
Converted package() and module() functions to pure virtual functions of Klass

Reviewed-by: dholmes, coleenp, lfoltan, hseigel
2016-04-26 09:08:12 -04:00
Harold Seigel
33aa33f03a 8154268: [TESTBUG] Compilation of ExportAllUnnamed.java failed, missing @modules
Add missing @modules and @build tags

Reviewed-by: ctornqvi, lfoltan, gtriantafill
2016-04-18 13:42:52 -04:00
Chris Hegarty
b7075c2db9 8153737: Unsupported Module
Reviewed-by: alanb, mchung, psandoz
2016-04-09 23:03:39 +01:00