Thomas Stuefe
5b6f81de07
8244777: ClassLoaderStats VM Op uses constant hash value
...
Reviewed-by: coleenp, jbachorik
2020-05-14 08:48:36 +02:00
Erik Österlund
382e5dc334
8241825: Make compressed oops and compressed class pointers independent (x86_64, PPC, S390)
...
Reviewed-by: coleenp, fparain, stuefe, mdoerr
2020-05-13 09:36:12 +00:00
Harold Seigel
39670b0e57
8241934: Simplify parse_stream() and remove has_class_mirror_holder_cld()
...
Added paramter to register_loader() which allowed removing of has_class_mirror_holder_cld()
Reviewed-by: coleenp, lfoltan
2020-05-11 15:00:16 +00:00
Claes Redestad
c2780c9556
8244550: Unsafe::allocateInstance does redundant transitions
...
Reviewed-by: coleenp, mchung, dholmes
2020-05-07 14:09:20 +02:00
Yumin Qi
0c0d485c37
8237750: Load libzip.so only if necessary
...
Libzip.so is unconditionally loaded even without usage. Fix by on demand loading.
Reviewed-by: dlong, iklam, ccheung
2020-05-05 15:40:18 -07: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
Jie Fu
765a5b858b
8244276: Zero and minimal VM build failure after JDK-8178349 (use of undeclared identifier 'SystemDictionaryShared')
...
Reviewed-by: minqi, dholmes
2020-05-03 20:11:14 +08: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
Harold Seigel
d74e4f2237
8243572: Multiple tests fail with assert(cld->klasses() != 0LL) failed: unexpected NULL for cld->klasses()
...
Merge unsafe anonymous class stats with hidden classes, avoiding having to call cld->klasses()
Reviewed-by: lfoltan, mchung, mgronlun
2020-04-30 13:10:09 +00: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
Coleen Phillimore
f8ab03fa04
8243503: InstanceKlass::_array_name is not needed and leaks
...
Decrement the refcount for all Klass in class unloading.
Reviewed-by: lfoltan, hseigel
2020-04-24 16:54:28 -04:00
Coleen Phillimore
90ada6a314
8238048: Close alignment gaps in InstanceKlass
...
Moved fields around and some constant fields into ConstantPool
Reviewed-by: cjplummer, dlong, iklam
2020-04-23 16:29:22 -04: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
Yumin Qi
7b8c373494
8240204: Optimize package handling for archived classes
...
ClassLoader::add_package just sets classpath_index to PackageEntry, moved the code to InstanceKlass. Also avoid calling check_prohibited_package since CDS does not archive prohibited classe in set_package.
Reviewed-by: hseigel, lfoltan, redestad, iklam
2020-04-20 16:36:15 -07:00
Claes Redestad
d185fe9953
8242452: During module definition, move conversion of packages from native to VM
...
8242290: Pointless verification in get_package_entry_by_name
Reviewed-by: lfoltan, iklam, hseigel
2020-04-18 19:45:45 +02:00
Lois Foltan
d37985cd70
8210012: Implement Unified Logging Option for -XX:+TraceMethodHandles and -XX:+TraceInvokeDynamic
...
Transition the tracing method handles command line options to unified logging, -Xlog:methodhandles.
Reviewed-by: dholmes, iklam, jrose
2020-04-15 21:01:02 +00:00
Henry Jen
0278846eaa
Merge
2020-04-14 23:11:49 +00: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
fb56759d08
8242027: Clean up LinkResolver::check_klass_accessability
...
Reviewed-by: dholmes
2020-04-02 18:22:27 +02:00
Claes Redestad
0d22ad6400
8241427: Coarsen locking in Modules::add_module_exports
...
Reviewed-by: lfoltan, hseigel
2020-03-26 00:02:08 +01:00
Claes Redestad
9a6038fbf3
8241584: Remove unused classLoader perf counters
...
Reviewed-by: hseigel
2020-03-25 13:38:31 +01: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
Claes Redestad
2b465b1ebf
8241010: Unnecessarily resolving some well-known classes
...
Reviewed-by: coleenp
2020-03-13 18:43:11 +01:00
Mandy Chung
d5d6dc0caa
8228336: Refactor native library loading implementation
...
Reviewed-by: alanb, dholmes
2020-03-12 11:54:11 -07:00
Stefan Karlsson
43e0fc04b0
8240529: CheckUnhandledOops breaks NULL check in Modules::define_module
...
Reviewed-by: coleenp, lfoltan, hseigel
2020-03-04 15:50:49 +01:00
Stefan Karlsson
593a05c93a
8240530: CheckUnhandledOops breaks BacktraceBuilder::set_has_hidden_top_frame
...
Reviewed-by: coleenp, dholmes
2020-03-04 15:50:51 +01:00
Ioi Lam
046dcdc0bc
8240613: InstanceKlass::set_init_state failed with assert(good_state || state == allocated)
...
Reviewed-by: dcubed
2020-03-08 15:06:27 -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
Calvin Cheung
5229896f4f
8240481: Remove CDS usage of InstanceKlass::is_in_error_state
...
Track the classes which fail verification during CDS dumping in DumpTimeSharedClassInfo.
Reviewed-by: iklam, minqi
2020-03-04 15:34:53 -08:00
Harold Seigel
cf89ff7a4b
8240324: Improve is_boot_class_loader_data() by adding simple check
...
Check if cld is the null_cld before looking at the class loader oop
Reviewed-by: coleenp
2020-03-03 15:50:20 +00:00
Lois Foltan
c280d98e80
8237766: Enhance signature API to include ResolvingSignatureStream
...
New ResolvingSignatureStream class provides the capability to easily walk through the differing parts of a signature while resolving or querying its underlying types.
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: coleenp, fparain, hseigel
2020-03-02 18:42:22 +00:00
Ioi Lam
0532bd23cd
8240267: VM fails to start with CDS enabled but JVMTI disabled
...
Reviewed-by: dholmes
2020-03-01 17:36:03 -08:00
Yumin Qi
5bfb8146e9
8240258: SystemDictionary::quick_resolve need guarded by INCLUDE_CDS
...
Supplemental fix for 8236604 to guard SystemDictionary::quick_resolve with CDS
Reviewed-by: iklam, ccheung
2020-02-28 19:29:11 -08:00
Jie Fu
f176fae840
8240254: Build is broken when cds is disabled after JDK-8236604
...
Reviewed-by: redestad
2020-02-29 09:38:12 +08:00
Yumin Qi
add146cc8b
8236604: Optimize SystemDictionary::resolve_well_known_classes for CDS
...
Serialize SystemDictionary::_well_known_classes into CDS and quickly resolve them at runtime in vm startup stage.
Reviewed-by: iklam, coleenp
2020-02-28 15:30:29 -08:00
Harold Seigel
a1e9328367
8235225: Replace CHECK_0 with CHECK_NULL for non-integer returning methods
...
Change CHECK_0 to CHECK_NULL and CHECK_false where appropriate
Reviewed-by: mikael, dholmes, coleenp
2020-02-27 13:00:05 +00:00
Claes Redestad
289513cc2b
8239235: Examine SignatureStream performance after consolidation
...
Reviewed-by: lfoltan, coleenp
2020-02-24 10:20:35 +01:00
Frederic Parain
8827df9b2d
8239014: -XX:-UseEmptySlotsInSupers sometime fails to reproduce the layout of the old code
...
Reviewed-by: dholmes, coleenp
2020-02-19 08:57:43 -05:00
Frederic Parain
30707f8007
8238961: Assertion failure in new field layout code when ContendedPaddingWidth == 0
...
Reviewed-by: hseigel, coleenp
2020-02-13 11:23:17 -05:00
Frederic Parain
9886cb401c
8237767: Field layout computation overhaul
...
Reviewed-by: dholmes, coleenp, lfoltan, shade
2020-02-10 09:49:12 -05:00
Lois Foltan
d19a396e96
8230199: consolidate signature parsing code in HotSpot sources
...
Add a new Signature class to support basic signature queries and enhance SignatureStream class to parse field signatures in addition to methods.
Co-authored-by: John Rose <john.r.rose@oracle.com>
Reviewed-by: coleenp, dholmes, fparain, hseigel
2020-02-06 14:29:57 +00:00
Claes Redestad
c639682887
8236075: Minor bootstrap improvements
...
Reviewed-by: mchung, alanb
2020-01-21 13:28:15 +01:00
Harold Seigel
7fc58a1020
8235678: Remove unnecessary calls to Thread::current() in MutexLocker calls
...
Add THREAD argument when available and make Thread* the first argument to relevant MutexLocker and MonitorLocker constructors
Reviewed-by: lfoltan, coleenp, dholmes
2020-01-16 13:48:23 +00:00
Coleen Phillimore
c4b8e38de4
8236224: Obsolete the FieldsAllocationStyle and CompactFields options
...
Remove the options and code for options deprecated in JDK 14
Reviewed-by: dholmes, hseigel, fparain
2020-01-07 13:11:35 -05:00
Smita Kamath
995da6eb2a
8167065: Add intrinsic support for double precision shifting on x86_64
...
Reviewed-by: kvn
2019-12-23 14:42:21 -08:00
Robbin Ehn
e4c96dea46
8235912: JvmtiBreakpoint remove oops_do and metadata_do
...
Reviewed-by: coleenp, sspitsyn
2019-12-19 16:47:59 +01:00
Vladimir Ivanov
2ea157fee1
8227467: Better class method invocations
...
Reviewed-by: thartmann, dholmes, ahgross
2019-12-03 19:31:20 +03:00