mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8027454: Do not traverse string table during G1 remark when treating them as strong roots during initial mark
Do not try to unlink string table entries unconditionally during remark. This is without side effects as the preceding initial mark always uses the string table as strong roots. Needs to be fixed with class unloading during concurrent mark. Reviewed-by: brutisso, mgerdin
This commit is contained in:
parent
4bb3631855
commit
aeba3a8119
1 changed files with 3 additions and 1 deletions
|
@ -2528,7 +2528,9 @@ void ConcurrentMark::weakRefsWork(bool clear_all_soft_refs) {
|
|||
assert(!rp->discovery_enabled(), "Post condition");
|
||||
}
|
||||
|
||||
g1h->unlink_string_and_symbol_table(&g1_is_alive);
|
||||
g1h->unlink_string_and_symbol_table(&g1_is_alive,
|
||||
/* process_strings */ false, // currently strings are always roots
|
||||
/* process_symbols */ true);
|
||||
}
|
||||
|
||||
void ConcurrentMark::swapMarkBitMaps() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue