mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6634032: CMS: Need CMSInitiatingPermOccupancyFraction for perm, divorcing from CMSInitiatingOccupancyFraction
The option CMSInitiatingPermOccupancyFraction now controls perm triggering threshold. Even though the actual value of the threshold has not yet been changed, so there is no change in policy, we now have the infrastructure in place for dynamically deciding when to collect the perm gen, an issue that will be addressed in the near future. Reviewed-by: jmasa
This commit is contained in:
parent
3bf59e9c0a
commit
f2b6ac989e
4 changed files with 198 additions and 109 deletions
|
@ -267,7 +267,7 @@ inline bool CMSCollector::is_dead_obj(oop obj) const {
|
|||
(_permGen->cmsSpace()->is_in_reserved(addr)
|
||||
&& _permGen->cmsSpace()->block_is_obj(addr)),
|
||||
"must be object");
|
||||
return cms_should_unload_classes() &&
|
||||
return should_unload_classes() &&
|
||||
_collectorState == Sweeping &&
|
||||
!_markBitMap.isMarked(addr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue