268 Commits

Author SHA1 Message Date
Thomas Schatzl
528361f7ae 8214850: Rename vm_operations.?pp files to vmOperations.?pp files
Reviewed-by: dholmes, coleenp
2018-12-06 15:44:40 +01:00
Per Lidén
602d095268 8214782: Add missing access barriers on CLD handle area
Reviewed-by: coleenp, eosterlund
2018-12-05 17:11:20 +01:00
Per Lidén
bfbeb1fe9e 8214784: Adjust Dictionary and JNIHandle verification
Reviewed-by: coleenp, eosterlund
2018-12-05 17:11:19 +01:00
Erik Österlund
cb1aebae6e 8214522: Last runtime locking issues for concurrent class unloading
Reviewed-by: coleenp, pliden
2018-12-05 08:55:42 +01:00
Calvin Cheung
4e935d302a 8214728: Unnecessary InstanceKlass::cast at few places
Reviewed-by: lfoltan, jiangli, coleenp
2018-12-04 11:54:09 -08:00
Ioi Lam
a0a108fb01 8214388: CDS dumping fails with java heap fragmentation
Force a full GC with a single thread before writing heap archive regions

Reviewed-by: sjohanss, jiangli
2018-12-03 22:27:24 -08:00
Erik Österlund
3a5bccf5c6 8213565: Crash in DependencyContext::remove_dependent_nmethod
Reviewed-by: rehn, kvn
2018-11-30 11:40:48 +01:00
Robbin Ehn
7e0040c384 8213791: StringTable: Use get and insert
Reviewed-by: eosterlund, gziemski
2018-11-28 11:06:27 +01:00
Dean Long
787f8b320e 8213259: [AOT] AOTing java.base fails with "java.lang.AssertionError: no fingerprint for Ljdk/internal/event/Event"
Reviewed-by: iklam, kvn
2018-11-26 22:49:57 -08:00
Ioi Lam
6d269930fd 8213587: Speed up CDS dump time by using resizable hashtables
Reviewed-by: jiangli, coleenp, gziemski
2018-11-20 20:00:15 -08:00
Ioi Lam
26cf1a832b 8213948: Solaris-X64 build fails with compact hashtable
Reviewed-by: dcubed, shade
2018-11-16 17:46:15 -08:00
Coleen Phillimore
673c68d993 8213092: Add more runtime locks for concurrent class unloading
Add locks for calling CLDG::purge concurrently as well and for calling SystemDictionary::do_unloading concurrently.

Reviewed-by: eosterlund, hseigel
2018-11-16 10:54:04 -05:00
Coleen Phillimore
dce8ff4dba 8213751: ClassLoaderDataGraph::cld_do() should sometimes require CLDG_lock
Add version of loaded_cld_do for runtime calls.

Reviewed-by: eosterlund, rehn
2018-11-16 07:30:40 -05:00
Robbin Ehn
9a79d90cc6 8213574: Deadlock in string table expansion when dumping lots of CDS classes
Reviewed-by: jiangli, iklam, dholmes
2018-11-14 07:50:37 +01:00
Ioi Lam
147fc3ed13 8213346: Re-implement shared dictionary using CompactHashtable
Reviewed-by: jiangli
2018-11-07 19:40:27 -08:00
Thomas Schatzl
56db122656 8213307: G1 should clean up RMT with ClassUnloadingWithConcurrentMark
Re-enable cleanup of the ResolvedMethodTable after changes in JDK-8206423.

Reviewed-by: shade, coleenp
2018-11-13 11:45:16 +01:00
Ioi Lam
b84cf61b08 8213250: CDS archive creation aborts due to metaspace object allocation failure
Reviewed-by: jiangli, ccheung
2018-11-01 10:59:05 -07:00
Daniel D. Daugherty
ca1c6b93ac 8213487: [BACKOUT] 8213414 Fix incorrect copy constructors in hotspot
Reviewed-by: roland, rkennke, thartmann
2018-11-07 12:40:51 -05:00
Magnus Ihse Bursie
1165eb3afe 8213414: Fix incorrect copy constructors in hotspot
Reviewed-by: kbarrett
2018-11-07 10:12:43 +01:00
Dean Long
a9ae141836 8212605: Pure-Java implementation of AccessController.doPrivileged
Reviewed-by: dholmes, mullan, vlivanov, mchung, alanb, rriggs
2018-11-06 16:04:50 -08:00
Erik Österlund
3798a62adb 8212996: Use AS_NO_KEEPALIVE when accessing dead java.lang.invoke.CallSites during nmethod unloading
Reviewed-by: coleenp, pliden
2018-11-05 12:36:23 +01:00
Jiangli Zhou
80ad2c7e71 8212995: Placing the Integer.IntegerCache and cached Integer objects in the closed archive heap region
Support shareable archive object subgraphs in closed archive heap regions.

Reviewed-by: iklam, ccheung
2018-11-03 15:40:19 -04:00
Per Lidén
54d4acf73f 8212184: Incorrect oop ref strength used for referents in FinalReference
Reviewed-by: eosterlund, kbarrett
2018-11-02 07:58:22 +01:00
Coleen Phillimore
adb1dcdcc2 8213107: Make ClassLoaderDataGraph iterator skip unloaded CLDs
With concurrent class unloading, the CLDG could contain unloaded CLDs while iterating in a safepoint

Reviewed-by: lfoltan, eosterlund
2018-10-31 07:06:54 -04:00
Markus Grönlund
e4f5ffc403 8213172: CDS and JFR tests fail with assert(JdkJfrEvent::is(klass)) failed: invariant
Reviewed-by: egahlin, dholmes
2018-10-31 09:09:23 +01:00
Jiangli Zhou
b9f22907d3 8203953: Rename SystemDictionary::load_shared_class(Symbol*, Handle, TRAPS) to load_shared_boot_class()
Rename SystemDictionary::load_shared_class.

Reviewed-by: coleenp
2018-10-30 22:24:04 -04:00
Ioi Lam
93395f6a9e 8212200: assert when shared java.lang.Object is redefined by JVMTI agent
Reviewed-by: dholmes, jiangli, hseigel, lfoltan, sspitsyn
2018-10-17 15:57:10 -07:00
Jiangli Zhou
0c554411b0 8205327: Clean up #if INCLUDE_CDS in classLoaderExt.cpp and classLoaderExt.hpp
Clean up #if INCLUDE_CDS in classLoaderExt.* files.

Reviewed-by: dholmes
2018-10-29 14:00:48 -04:00
Calvin Cheung
7c81535d46 8209598: Clean up how messages are printed when CDS aborts start-up
Added a new function vm_exit_during_cds_dumping() to java.cpp so that it can be used when an error condition is encountered during CDS dumping.

Reviewed-by: iklam, dholmes, jiangli
2018-10-25 21:40:17 -07:00
Mandy Chung
5e6d6b8642 8207146: Rename jdk.internal.misc.Unsafe::xxxObject to xxxReference
Reviewed-by: dholmes, thartmann
2018-10-22 17:00:04 -07:00
Ioi Lam
4abb6861ec 8212642: Remove SystemDictionary::InitOption enum
Reviewed-by: dholmes, kvn, redestad
2018-10-18 23:05:01 -07:00
Harold Seigel
ef3c0a2458 8209087: Clean up runtime code that compares 'this' to NULL
Remove 'this' to NULL comparisons from methods and check if calling objects of these methods could be NULL.

Reviewed-by: lfoltan, gziemski
2018-10-18 10:35:58 -04:00
Harold Seigel
794d864feb 7041262: VM_Version should be called instead of Abstract_VM_Version so that overriding works
Change calls to Abstract_VM_Version methods to be calls to VM_Version methods.

Reviewed-by: coleenp, kbarrett, dholmes
2018-10-16 11:08:46 -04:00
Erik Österlund
e39c5811b5 8210330: Make CLD claiming allow multiple claim bits
Reviewed-by: pliden, coleenp
2018-10-16 13:16:11 +02:00
Erik Österlund
782fa608d2 8210064: ZGC: Introduce ZConcurrentRootsIterator for scanning a subset of strong IN_NATIVE roots concurrently
Reviewed-by: pliden, kbarrett
2018-10-16 13:14:18 +02:00
Harold Seigel
8c62c2e33a 8207689: Remove perfCounter _load_instance_class_failCounter used by deleted flag UnsyncloadClass
Delete the perfCounter

Reviewed-by: lfoltan, acorn, dholmes
2018-10-10 10:18:52 -04:00
David Holmes
468b69240e 8211394: CHECK_ must be used in the rhs of an assignment statement within a block
Replace "return foo(CHECK_X);" with "return foo(THREAD);"

Reviewed-by: iklam, phh, stuefe, lfoltan
2018-10-09 20:38:13 -04:00
Jiangli Zhou
a2ad8f419f 8206009: Move CDS java heap object archiving code to heapShared.hpp and heapShared.cpp
Restructure and cleanup java heap object archiving code.

Reviewed-by: coleenp, iklam
2018-10-09 15:58:07 -04:00
Ioi Lam
2f82ed4f1d 8210388: Use hash table to store archived subgraph_info records
Reviewed-by: jiangli
2018-10-08 16:29:10 -07:00
Martin Doerr
4af2374271 8210754: print_location is not reliable enough (printing register info)
Reviewed-by: stuefe, coleenp
2018-10-04 16:39:07 +02:00
Harold Seigel
221005a3d4 8209138: Symbol constructor uses u1 as the element type of its name argument
Maske u1 the type for Symbol values and add a function to return it as a char.

Reviewed-by: dholmes, coleenp
2018-10-03 09:46:46 -04:00
Volker Simonis
d35eda31e3 8211328: Different declaration and definition of ClassLoaderData::classes_do() leads to build failures
Reviewed-by: dcubed, coleenp
2018-10-01 19:08:14 +02:00
Jiangli Zhou
061c4d7a81 8210926: vmTestbase/nsk/jvmti/scenarios/allocation/AP11/ap11t001/TestDescription.java failed with JVMTI_ERROR_INVALID_CLASS in CDS mode
Reset InstanceKlass _init_state to 'allocated' before writing out shared classes at dump time.

Reviewed-by: dholmes, coleenp
2018-10-01 00:52:37 -04:00
Coleen Phillimore
7ef28cb2bc 8209645: Split ClassLoaderData and ClassLoaderDataGraph into separate files
Reviewed-by: iklam, stuefe
2018-09-28 16:07:39 -04:00
Coleen Phillimore
06a1ea846a 8210856: Move InstanceKlass DependencyContext cleaning to SystemDictionary::do_unloading()
Already walk classes in ClassLoaderData::unload so generalize to also clean nmethod dependencies.

Reviewed-by: eosterlund, dlong, vlivanov
2018-09-26 14:01:48 -04:00
Ioi Lam
6c59cb232f 8210875: Refactor CompactHashtable
Reviewed-by: ccheung, jiangli
2018-09-18 21:47:14 -07:00
Zhengyu Gu
cf8469cceb 8210879: ClassLoaderStatsClosure does raw oop comparison
Uses oopDesc::equals() for comparing oop equality

Reviewed-by: shade
2018-09-19 16:51:22 -04:00
Coleen Phillimore
fce43c0c36 8198717: Remove compute_optional_offset
Remove optional_offset computation and related unused code from javaClasses for reflection.

Reviewed-by: redestad, lfoltan
2018-09-19 15:25:05 -04:00
Ioi Lam
1619cbd14b 8210864: Reduce the use of metaspaceShared.hpp
Reviewed-by: coleenp, lfoltan
2018-09-18 21:46:17 -07:00
Coleen Phillimore
bad4a92e55 8210559: ClassLoaderData Symbols can leak
Unrefcount the symbol names when the CLD is destroyed

Reviewed-by: lfoltan, jiangli, iklam
2018-09-14 12:10:28 -04:00