8259643: ZGC can return metaspace OOM prematurely

Reviewed-by: stefank, pliden, stuefe
This commit is contained in:
Erik Österlund 2021-11-18 14:32:59 +00:00
parent a44b45fdf3
commit 00c388b4ab
6 changed files with 280 additions and 21 deletions

View file

@ -139,7 +139,8 @@ extern Monitor* JfrThreadSampler_lock; // used to suspend/resume JFR t
extern Mutex* UnsafeJlong_lock; // provides Unsafe atomic updates to jlongs on platforms that don't support cx8
#endif
extern Mutex* Metaspace_lock; // protects Metaspace virtualspace and chunk expansions
extern Mutex* Metaspace_lock; // protects Metaspace virtualspace and chunk expansions
extern Monitor* MetaspaceCritical_lock; // synchronizes failed metaspace allocations that risk throwing metaspace OOM
extern Mutex* ClassLoaderDataGraph_lock; // protects CLDG list, needed for concurrent unloading