mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
6962931: move interned strings out of the perm gen
Reviewed-by: never, coleenp, ysr, jwilhelm
This commit is contained in:
parent
1ed31f9194
commit
fe899cc10d
14 changed files with 58 additions and 41 deletions
|
@ -171,11 +171,13 @@ void SharedHeap::process_strong_roots(bool activate_scope,
|
|||
}
|
||||
|
||||
if (!_process_strong_tasks->is_task_claimed(SH_PS_StringTable_oops_do)) {
|
||||
if (so & SO_Strings) {
|
||||
StringTable::oops_do(roots);
|
||||
}
|
||||
// Verify if the string table contents are in the perm gen
|
||||
NOT_PRODUCT(StringTable::oops_do(&assert_is_perm_closure));
|
||||
if (so & SO_Strings || (!collecting_perm_gen && !JavaObjectsInPerm)) {
|
||||
StringTable::oops_do(roots);
|
||||
}
|
||||
if (JavaObjectsInPerm) {
|
||||
// Verify the string table contents are in the perm gen
|
||||
NOT_PRODUCT(StringTable::oops_do(&assert_is_perm_closure));
|
||||
}
|
||||
}
|
||||
|
||||
if (!_process_strong_tasks->is_task_claimed(SH_PS_CodeCache_oops_do)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue