4965777: GC changes to support use of discovered field for pending references

If and when the reference handler thread is able to use the discovered field to link reference objects in its pending list, so will GC. In that case, GC will scan through this field once a reference object has been placed on the pending list, but not scan that field before that stage, as the field is used by the concurrent GC thread to link discovered objects. When ReferenceHandleR thread does not use the discovered field for the purpose of linking the elements in the pending list, as would be the case in older JDKs, the JVM will fall back to the old behaviour of using the next field for that purpose.

Reviewed-by: jcoomes, mchung, stefank
This commit is contained in:
Y. Srinivas Ramakrishna 2011-09-07 13:55:42 -07:00
parent ec13301b32
commit ed72e31727
6 changed files with 229 additions and 88 deletions

View file

@ -672,7 +672,8 @@ void JDK_Version::initialize() {
_current = JDK_Version(major, minor, micro, info.update_version,
info.special_update_version, build,
info.thread_park_blocker == 1,
info.post_vm_init_hook_enabled == 1);
info.post_vm_init_hook_enabled == 1,
info.pending_list_uses_discovered_field == 1);
}
}