Ioi Lam
d9744f6536
8261608: Move common CDS archive building code to archiveBuilder.cpp
...
Reviewed-by: coleenp, ccheung
2021-02-15 06:37:39 +00:00
Coleen Phillimore
06170b7cbf
8261662: Rename compute_loader_lock_object
...
Reviewed-by: dcubed, stuefe
2021-02-12 17:45:47 +00:00
Ioi Lam
c5ff454481
8250989: Consolidate buffer allocation code for CDS static/dynamic dumping
...
Reviewed-by: ccheung, coleenp
2021-02-07 07:10:38 +00:00
Coleen Phillimore
2c3a86f96e
8261280: Remove THREAD argument from compute_loader_lock_object
...
Reviewed-by: dcubed
2021-02-06 16:35:30 +00:00
Ioi Lam
ffbcf1b0a7
8260471: Change SystemDictionary::X_klass calls to vmClasses::X_klass
...
Reviewed-by: lfoltan, hseigel, dholmes, stuefe
2021-02-02 23:40:29 +00:00
Coleen Phillimore
a421bfad28
8259839: SystemDictionary exports too much implementation
...
Reviewed-by: iklam, dholmes
2021-02-02 13:29:16 +00:00
Calvin Cheung
bbbfaa58c0
8249262: Initialize InstanceKlass::_package_entry during CDS dump time
...
Reviewed-by: iklam, minqi
2021-01-28 16:17:46 +00:00
Ioi Lam
396a496f3c
8260467: Move well-known classes from systemDictionary.hpp to vmClasses.hpp
...
Reviewed-by: dholmes, coleenp
2021-01-28 04:24:04 +00:00
Coleen Phillimore
9aa5672af0
8259068: Streamline class loader locking
...
Reviewed-by: dcubed, iklam
2021-01-15 17:47:33 +00:00
Coleen Phillimore
6e824b3f51
8258408: SystemDictionary passes TRAPS to functions that don't throw exceptions
...
Reviewed-by: dholmes, lfoltan
2020-12-17 18:49:42 +00:00
Coleen Phillimore
c4632647ae
8258048: Placeholder hash code is the same as Dictionary hash code
...
Reviewed-by: dholmes, hseigel, lfoltan
2020-12-16 19:17:58 +00:00
Ioi Lam
02a0a027f4
8257563: Remove excessive include of klass.inline.hpp
...
Reviewed-by: dholmes, stuefe, stefank
2020-12-03 01:34:04 +00:00
Calvin Cheung
3da30e991a
8257241: CDS should not handle disableEagerInitialization for archived lambda proxy classes
...
Reviewed-by: iklam, redestad, mchung
2020-12-02 22:17:46 +00:00
Thomas Schatzl
d30956055b
8253081: G1 fails on stale objects in archived module graph in Open Archive regions
...
Change the handling of Open Archive areas, instead of assuming that everything in there is live always, a root containing references to all live root objects is provided. Adapt G1 to handle Open Archive regions as any other old region apart from never compacting or evacuating them.
Co-authored-by: Ioi Lam <iklam@openjdk.org>
Reviewed-by: kbarrett, sjohanss, redestad
2020-11-18 08:21:03 +00:00
Ioi Lam
2f06893a29
8252526: Remove excessive inclusion of jvmti.h and jvmtiExport.hpp
...
Reviewed-by: ihse, kbarrett
2020-11-12 01:45:27 +00:00
Ioi Lam
397bae20e9
8255860: Clean up CDS logging related to lambda
...
Reviewed-by: ccheung, minqi
2020-11-05 05:20:59 +00:00
Calvin Cheung
84e985da4b
8253920: Share method trampolines in CDS dynamic archive
...
Reviewed-by: redestad, minqi, iklam
2020-10-27 16:16:01 +00:00
Calvin Cheung
74ac77e2b1
8247666: Support Lambda proxy classes in static CDS archive
...
Reviewed-by: iklam, mchung
2020-10-19 18:27:50 +00:00
Ioi Lam
5145bed028
8254125: Assertion in cppVtables.cpp during builds on 32bit Windows
...
Reviewed-by: shade, ccheung
2020-10-16 05:14:46 +00:00
Yumin Qi
e49232a0d2
8254599: CDS dump should not warn about hidden classes
...
Reviewed-by: redestad, lfoltan, iklam
2020-10-13 04:05:21 +00:00
Yumin Qi
e4469d2c8c
8247536: Support for pre-generated java.lang.invoke classes in CDS static archive
...
Reviewed-by: iklam, mchung
2020-10-10 02:06:52 +00:00
Calvin Cheung
ea27a54bf0
8224509: Incorrect alignment in CDS related allocation code on 32-bit platforms
...
Reviewed-by: iklam, stuefe
2020-10-05 16:52:00 +00:00
Yumin Qi
f978f6fe8a
8252689: Classes are loaded from jrt:/java.base even when CDS is used
...
Reviewed-by: iklam, ccheung
2020-09-14 03:39:13 +00:00
David Holmes
976acddeb5
8252406: Introduce Thread::as_Java_thread() convenience function
...
Reviewed-by: shade, coleenp, kbarrett, dcubed
2020-09-11 01:31:32 +00:00
Calvin Cheung
31d108c1af
8251918: [Graal] Crash in DumpTimeSharedClassInfo::add_verification_constraint
...
Add NULL check on the return value of SystemDictionaryShared::find_or_allocate_info_for().
Reviewed-by: iklam, minqi
2020-08-22 00:09:23 +00:00
Calvin Cheung
57d2c86985
8247529: Crash in runtime/cds/appcds/dynamicArchive/LambdaProxyCallerIsHidden.java with Graal
...
Avoid inserting InstanceKlass into the DumpTimeSharedClassTable after dynamic CDS dumping has started. Acquire the DumpTimeTable_lock before iterations on _dumptime_table to ensure memory order correctness.
Reviewed-by: iklam, minqi
2020-08-17 18:46:38 +00:00
Ioi Lam
35e3226df8
8250990: Consolidate object copying code for CDS static/dynamic archive dumping
...
Reviewed-by: coleenp, ccheung
2020-08-13 18:40:51 -07:00
Coleen Phillimore
9798a0846b
8249837: Avoid direct or implicit Thread::current() calls when we already have a current thread variable
...
Add current thread OR remove unneeded HandleMark
Reviewed-by: kvn, dholmes
2020-07-30 10:41:31 -04:00
Calvin Cheung
5088193336
8249630: unused is_static_archive parameter in SystemDictionaryShared::write_dictionary
...
Reviewed-by: minqi, dholmes
2020-07-23 16:52:08 +00:00
Coleen Phillimore
6ee76b6b05
8249760: Unnecessary #include oopStorageSet
...
Reviewed-by: hseigel
2020-07-20 10:53:29 -04:00
Kim Barrett
a8d6a05ce8
8248391: Unify handling of all OopStorage instances in weak root processing
...
OopStorage instance now owned by subsystems, and generalize dead entry notification
Co-authored-by: Erik Osterlund <erik.osterlund@oracle.com>
Co-authored-by: Stefan Karlsson <stefan.karlsson@oracle.com>
Reviewed-by: coleenp, tschatzl
2020-07-16 17:41:14 -04:00
Calvin Cheung
5146474954
8246308: Reference count for PackageEntry::name may be incorrectly decremented
...
Corrected the usage of TempNewSymbol.
Reviewed-by: minqi, iklam
2020-07-13 16:05:25 +00:00
Calvin Cheung
dc74336a65
8243586: Optimize calls to SystemDictionaryShared::define_shared_package for classpath
...
Define_shared_package only needs to be called once for each package in a jar specified in the shared class path.
Reviewed-by: iklam, dholmes, minqi
2020-07-01 21:05:14 +00:00
Ioi Lam
27fc8b6787
8246546: Simplify SystemDictionary::is_shared_class_visible
...
Reviewed-by: minqi, ccheung
2020-06-23 21:23:00 -07:00
Stefan Karlsson
17f2250c5a
8247879: Rework WeakHandle and OopHandle to dynamically support different OopStorages
...
Reviewed-by: coleenp, eosterlund
2020-06-23 09:38:21 +02:00
Stefan Karlsson
77bdc30650
8247470: Fix CHeap GrowableArray NMT accounting
...
Reviewed-by: coleenp, tschatzl, kbarrett
2020-06-16 09:37:53 +02:00
Calvin Cheung
847a3baca8
8198698: Support Lambda proxy classes in dynamic CDS archive
...
Added archving of hidden classes of type lambda proxy classes.
Co-authored-by: Ioi Lam <ioi.lam@oracle.com>
Reviewed-by: mchung, iklam, dholmes
2020-06-10 15:50:26 +00:00
Coleen Phillimore
f3c2a17a30
8247220: Make OopHandle constructor explicit
...
Fix null initializations to explicitly call the OopHandle constructor
Reviewed-by: lfoltan, kbarrett
2020-06-10 08:29:39 -04:00
Coleen Phillimore
498b0e61ed
8246340: Move SystemDictionary GC roots into OopStorage
...
Use vm_global() OopStorage for system dictionary roots
Reviewed-by: eosterlund, lfoltan
2020-06-05 09:55:31 -04:00
Thomas Stuefe
66514251c1
8244733: Add ResourceHashtable::xxx_if_absent
...
Reviewed-by: coleenp, iklam, rehn, dholmes
2020-05-20 15:56:39 +02:00
Ioi Lam
eadcb08c3c
8241071: Generation of classes.jsa with -Xshare:dump is not deterministic
...
Reviewed-by: dholmes, stuefe
2020-05-05 11:10:02 -07:00
Yumin Qi
832272da71
8178349: Cache builtin class loader constraints to avoid re-initializing itable/vtable for shared classes
...
Record loader constraints for built-in class which is loaded by app loader or platform loader in shared archive in dump time. When the class loaded from shared archive at runtime, directly check loader constraints using the saved info so avoid lengthy relayout i/v-table at class link stage.
Reviewed-by: iklam, ccheung
2020-05-01 10:58:45 -07:00
Calvin Cheung
18c43241fb
8241815: Unnecessary calls to SystemDictionaryShared::define_shared_package
...
Avoid calling ClassLoaders.definePackage during loading of shared classes originated from the module image since java.lang.Package for named modules are automatically defined.
Reviewed-by: mchung, lfoltan
2020-04-28 00:09:53 +00:00
Mandy Chung
7cc1371059
8238358: Implementation of JEP 371: Hidden Classes
...
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Co-authored-by: David Holmes <david.holmes@oracle.com>
Co-authored-by: Harold Seigel <harold.seigel@oracle.com>
Co-authored-by: Serguei Spitsyn <serguei.spitsyn@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Jamsheed Mohammed C M <jamsheed.c.m@oracle.com>
Co-authored-by: Jan Lahoda <jan.lahoda@oracle.com>
Co-authored-by: Amy Lu <amy.lu@oracle.com>
Reviewed-by: alanb, cjplummer, coleenp, dholmes, dlong, forax, jlahoda, psandoz, plevart, sspitsyn, vromero
2020-04-21 06:55:38 -07:00
Ioi Lam
0bc7cc4d28
8241158: SA TestHeapDumpForInvokeDynamic.java fails when CDS archive is relocated
...
Reviewed-by: ccheung
2020-04-20 17:33:52 -07:00
Calvin Cheung
dd4e04d6f5
8242134: Consolidate the get_package_entry() in SystemDictionaryShared and ClassLoader
...
Keep the version in ClassLoader.
Reviewed-by: hseigel, redestad, lfoltan
2020-04-08 08:56:05 -07:00
Calvin Cheung
512644de06
8240205: Avoid PackageEntry lookup when loading shared classes
...
Do the PackageEntry lookup at one place and then pass it along to the subsequently called functions which need it.
Reviewed-by: redestad, lfoltan
2020-04-03 14:26:42 -07:00
Claes Redestad
23d6a788b4
8241371: Refactor and consolidate package_from_name
...
Reviewed-by: iklam, lfoltan
2020-03-23 23:18:42 +01:00
Ioi Lam
81353a56f9
8241244: CDS dynamic dump asserts in ArchivePtrBitmapCleaner::do_bit
...
Reviewed-by: minqi, coleenp
2020-03-23 13:27:22 -07:00
Ioi Lam
7ba18fc015
8240244: Avoid calling resolve_super_or_fail in SystemDictionary::load_shared_class
...
Reviewed-by: redestad, lfoltan, minqi
2020-03-04 22:26:48 -08:00