comparison src/share/vm/runtime/java.cpp @ 3917:eca1193ca245

4965777: GC changes to support use of discovered field for pending references Summary: 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
author ysr
date Wed, 07 Sep 2011 13:55:42 -0700
parents 0f34fdee809e
children f08d439fab8c
comparison
equal deleted inserted replaced
3916:05550041d664 3917:eca1193ca245
670 micro = 0; 670 micro = 0;
671 } 671 }
672 _current = JDK_Version(major, minor, micro, info.update_version, 672 _current = JDK_Version(major, minor, micro, info.update_version,
673 info.special_update_version, build, 673 info.special_update_version, build,
674 info.thread_park_blocker == 1, 674 info.thread_park_blocker == 1,
675 info.post_vm_init_hook_enabled == 1); 675 info.post_vm_init_hook_enabled == 1,
676 info.pending_list_uses_discovered_field == 1);
676 } 677 }
677 } 678 }
678 679
679 void JDK_Version::fully_initialize( 680 void JDK_Version::fully_initialize(
680 uint8_t major, uint8_t minor, uint8_t micro, uint8_t update) { 681 uint8_t major, uint8_t minor, uint8_t micro, uint8_t update) {