Harold Seigel
eb51968f00
8202578: Revisit location for class unload events
...
Use notify_unload_class() to post JFR class unload events instead of doing a separate traversal of the class loader data graph
Reviewed-by: lfoltan, coleenp, mgronlun, egahlin
2018-08-28 10:10:11 -04:00
Coleen Phillimore
fd9fa38d21
8209821: Make JVMTI GetClassLoaderClasses not walk CLDG
...
And also added function with KlassClosure to remove the hacks.
Reviewed-by: lfoltan, sspitsyn
2018-08-25 11:10:21 -04:00
Jiangli Zhou
7a51b4a8fa
8208061: runtime/LoadClass/TestResize.java fails with "Load factor too high" when running in CDS mode
...
Allow resizing for all system dictionaries except for the shared dictionary at runtime.
Reviewed-by: iklam, gziemski
2018-08-24 15:33:28 -04:00
Coleen Phillimore
eca24bfb55
8209792: Remove ClassLoaderDataGraph::keep_alive_cld_do
...
Unnecessary
Reviewed-by: zgu, tschatzl
2018-08-21 10:03:22 -04:00
Coleen Phillimore
dc556f4086
8209738: Remove ClassLoaderDataGraph::*oops_do functions
...
Make walking CLDG more consistent.
Reviewed-by: dholmes, tschatzl
2018-08-21 09:33:41 -04:00
Lois Foltan
75ed173e15
8209301: JVM rename is_anonymous, host_klass to unsafe specific terminology ahead of Unsafe.defineAnonymousClass deprecation
...
Clean up VM anonymous class terminology.
Reviewed-by: coleenp, dholmes, mchung
2018-08-20 08:25:57 -04:00
Coleen Phillimore
ef15adee70
8209541: Fix merge problem in SymbolTable::do_check_concurrent_work
...
Remerged with previous change to do_unloading.
Reviewed-by: hseigel
2018-08-15 16:01:48 -04:00
Gerard Ziemski
b75805c1a5
8195100: Use a low latency hashtable for SymbolTable
...
Used concurrentHashTable, similar to stringTable
Reviewed-by: coleenp, kbarrett, iklam, pliden
2018-08-14 18:42:14 -05:00
Harold Seigel
83b2fb5b0d
8207778: Add locking to ModuleEntry and PackageEntry tables
...
Restructure ClassLoaderDataGraph code to simplify using locks in SystemDictionary::do_unloading()
Reviewed-by: lfoltan, coleenp
2018-08-10 09:30:26 -04:00
Coleen Phillimore
a7b66f6f5e
8208677: Move inner metaspace cleaning out of class unloading
...
Move to safepoint cleanup actions to do if needed.
Reviewed-by: eosterlund, hseigel
2018-08-08 15:24:21 -04:00
Thomas Schatzl
9c0720b156
8208671: Runtime, JFR, Serviceability changes to allow enabling -Wreorder
...
Reviewed-by: dholmes, hseigel
2018-08-08 15:31:07 +02:00
Kim Barrett
8a2170dad7
8205559: Remove IN_CONCURRENT_ROOT Access decorator
...
Removed decorator and made all NativeAccess use barriers.
Reviewed-by: pliden, stefank
2018-06-26 16:59:38 -04:00
Lois Foltan
48500f81a1
8205509: assert(_name_and_id != 0LL) failed: encountered a class loader null name and id
...
The method loader_name_and_id should return the external name of the class loader if _name_and_id is null.
Reviewed-by: coleenp, stuefe
2018-06-25 10:34:46 -04:00
Lois Foltan
425e1a8bb8
8202605: Standardize on ClassLoaderData::loader_name() throughout the VM to obtain a class loader's name
...
Introduced ClassLoaderData::name() and ClassLoaderData::name_and_id() for use when obtaining a class loader's name.
Reviewed-by: coleenp, goetz, mchung, stuefe
2018-06-19 07:54:11 -04:00
Kim Barrett
05b5a78903
8204939: Change Access nomenclature: root to native
...
Rename RootAccess => NativeAccess, IN_ROOT => IN_NATIVE, and related cleanups.
Reviewed-by: pliden, stefank, coleenp
2018-06-15 16:53:58 -04:00
Coleen Phillimore
37e51f4074
8202669: Intermittent crash in ClassLoadingService::compute_class_size()
...
Don't report classes that failed to load when reporting class unloading. Remove the classes first.
Reviewed-by: dholmes, lfoltan, ccheung
2018-05-22 13:10:56 -04:00
Erik Gahlin
a060be188d
8199712: Flight Recorder
...
Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Reviewed-by: coleenp, ihse, erikj, dsamersoff, mseledtsov, egahlin, mgronlun
2018-05-15 20:24:34 +02:00
Coleen Phillimore
ddfd4c33c6
8201556: Disallow reading oops in ClassLoaderData if unloading
...
Move class_loader oop to an OopHandle, and assert that holder is alive when getting class_loader.
Reviewed-by: kbarrett, adinn
2018-04-18 18:43:04 -04:00
Coleen Phillimore
36d1d59425
8201505: Use WeakHandle for ProtectionDomainCacheTable and ResolvedMethodTable
...
8193524: Redefining a method that removes use of 1 or more lambda expressions causes the JVM to hang
Remove oop pointers from runtime data structures.
Co-authored-by: Lois Foltan <lois.foltan@oracle.com>
Reviewed-by: lfoltan, stefank
2018-04-18 12:06:53 -04:00
Coleen Phillimore
1ee531afe9
8200555: OopHandle should use Access API
...
Add RootAccess<> to OopHandle.resolve() in runtime and interpreter code. Add comments for compiler code for later.
Reviewed-by: eosterlund, stefank
2018-04-18 10:39:40 -04:00
Coleen Phillimore
d187884156
8198313: Wrap holder object for ClassLoaderData in a WeakHandle
...
Use WeakHandle for ClassLoaderData::_holder so that is_alive closure is not needed
Reviewed-by: rehn, kbarrett
2018-04-10 10:06:42 -04:00
Roman Kennke
b938ae51ce
8199781: Don't use naked == for comparing oops
...
Reviewed-by: coleenp, eosterlund, jrose
2018-04-03 13:15:27 +02:00
Coleen Phillimore
f8ee0063b1
8199007: ClassLoaderDataGraph::unload_list_contains() is wrong
...
The function isn't needed any longer.
Reviewed-by: stuefe, stefank
2018-03-26 10:19:31 -04:00
Stefan Karlsson
1a1aecd166
8200106: Move NoSafepointVerifier out from gcLocker.hpp
...
Reviewed-by: coleenp
2018-03-23 18:54:12 +01:00
Coleen Phillimore
b15a3ff611
8197844: JVMTI GetLoadedClasses should use the Access API
...
Make sure the holder of a class loader is accessed during iteration of CLDG
Reviewed-by: eosterlund, rkennke
2018-03-21 17:09:34 -04:00
Coleen Phillimore
29cb168550
8199272: Broken assertion in ClassLoaderData::remove_handle
...
Added new ClassLoaderData::ChunkList::contains(oop*) function for OopHandle rather than oop.
Reviewed-by: stefank, hseigel
2018-03-15 07:40:00 -04:00
Thomas Stuefe
c18227978e
8199431: Split up class Metaspace into a static and a non-static part
...
Reviewed-by: coleenp, adinn, zgu
2018-03-15 07:15:39 +01:00
Volker Simonis
97cfb7bbb7
8199472: Fix non-PCH build after JDK-8199319
...
Reviewed-by: stefank, coleenp
2018-03-14 12:12:00 +01:00
Stefan Karlsson
b9f2f3e199
8199275: Fix inclusions of allocation.inline.hpp
...
Reviewed-by: coleenp, kbarrett, dholmes
2018-03-08 09:56:29 +01:00
Coleen Phillimore
4c3e072611
8198926: Move ClassLoaderData::_dependencies to ClassLoaderData::_handles
...
Move dependency creation and cleaned up logging
Reviewed-by: hseigel, jiangli
2018-03-06 17:15:16 -05:00
Erik Österlund
432a71e564
8198286: Direct memory accessors in typeArrayOop.hpp should use Access API
...
Reviewed-by: pliden, rkennke
2018-02-22 10:39:42 +01:00
Zhengyu Gu
934390b571
8196923: [REDO] NMT: Report array class count in NMT summary
...
Added instance and array class counters in NMT summary report
Reviewed-by: minqi, stuefe, coleenp
2018-02-08 13:21:22 -05:00
Jesper Wilhelmsson
dd416bbf33
8196924: [BACKOUT] NMT: Report array class count in NMT summary
...
Reviewed-by: dholmes
2018-02-07 03:43:29 +01:00
Zhengyu Gu
41ace19206
8193184: NMT: Report array class count in NMT summary
...
Report array class and instance class count in NMT summary report
Reviewed-by: coleenp, minqi
2018-02-06 08:24:36 -05:00
Harold Seigel
34480e526e
8190235: Clarify ClassLoaderData::is_*_class_loader_data() method implementations
...
Add comments, fix a small issue with the boot loader, and add an assert.
Reviewed-by: coleenp, lfoltan, gtriantafill
2018-02-06 13:41:49 -05:00
Harold Seigel
83bb2205e8
8190359: Reduce the number of recorded klass dependencies
...
Skip recording dependencies to non-anonymous classes loaded by builtin class loaders.
Reviewed-by: iklam, coleenp, lfoltan
2018-02-02 10:37:48 -05:00
Coleen Phillimore
e9b04293e3
8175249: VMThread::run fails in VerifyBeforeExit : Universe::verify
...
Protection domain package access cache needs to be walked in unloading
Reviewed-by: dholmes, jiangli, zgu, kbarrett
2018-01-24 11:33:18 -05:00
Erik Österlund
01ab4faae4
8191888: Refactor ClassLoaderData::remove_handle to use the Access API
...
Reviewed-by: tschatzl, pliden, coleenp
2018-01-08 13:13:05 +01:00
Coleen Phillimore
949659e43b
8193622: JFR test TestUnloadingEventClass.java times out intermittently
...
Previous change was leaving scratch classes on CLD::_klasses list which are reported to tracing
Reviewed-by: gtriantafill, dcubed, mgronlun
2017-12-19 15:56:28 -05:00
Coleen Phillimore
3541733024
8193053: jvm crash by G1CMBitMapClosure::do_addr
...
We were adding an unloaded mirror to the SATB collection set in remove_handle.
Reviewed-by: hseigel, kbarrett
2017-12-13 07:14:18 -05:00
Gerard Ziemski
a043febf6f
8184765: Dynamically resize SystemDictionary
...
Implemented dynamic resizing, which triggers when load factor is too high
Reviewed-by: coleenp, rehn
2017-11-02 11:00:34 -05:00
Coleen Phillimore
39b068db11
8188220: Remove Atomic::*_ptr() uses and overloads from hotspot
...
With the new template functions these are unnecessary.
Reviewed-by: kbarrett, dholmes, eosterlund
2017-10-16 22:36:06 -04:00
Coleen Phillimore
73a801bc43
8186777: Make Klass::_java_mirror an OopHandle
...
Add indirection for fetching mirror so that GC doesn't have to follow CLD::_klasses
Co-authored-by: Rickard Backman <rickard.backman@oracle.com>
Reviewed-by: hseigel, thartmann, eosterlund, stefank
2017-10-03 16:42:04 -04:00
Erik Joelsson
3789983e89
8187443: Forest Consolidation: Move files to unified layout
...
Reviewed-by: darcy, ihse
2017-09-12 19:03:39 +02:00