comparison src/hotspot/share/gc/shared/referenceProcessor.cpp @ 50590:4fa726f796f5

8202781: Fix typo in DiscoveredListIterator::complete_enqeue Reviewed-by: kbarrett
author tschatzl
date Tue, 08 May 2018 16:49:20 +0200
parents 9d17c375dc30
children bf2f27b92064
comparison
equal deleted inserted replaced
8:63166c3ede5f 9:4c5a0c52285a
309 HeapAccess<AS_NO_KEEPALIVE>::oop_store_at(_current_discovered, 309 HeapAccess<AS_NO_KEEPALIVE>::oop_store_at(_current_discovered,
310 java_lang_ref_Reference::discovered_offset, 310 java_lang_ref_Reference::discovered_offset,
311 _next_discovered); 311 _next_discovered);
312 } 312 }
313 313
314 void DiscoveredListIterator::complete_enqeue() { 314 void DiscoveredListIterator::complete_enqueue() {
315 if (_prev_discovered != NULL) { 315 if (_prev_discovered != NULL) {
316 // This is the last object. 316 // This is the last object.
317 // Swap refs_list into pending list and set obj's 317 // Swap refs_list into pending list and set obj's
318 // discovered to what we read from the pending list. 318 // discovered to what we read from the pending list.
319 oop old = Universe::swap_reference_pending_list(_refs_list.head()); 319 oop old = Universe::swap_reference_pending_list(_refs_list.head());
472 log_develop_trace(gc, ref)("Adding %sreference (" INTPTR_FORMAT ": %s) as pending", 472 log_develop_trace(gc, ref)("Adding %sreference (" INTPTR_FORMAT ": %s) as pending",
473 clear_referent ? "cleared " : "", p2i(iter.obj()), iter.obj()->klass()->internal_name()); 473 clear_referent ? "cleared " : "", p2i(iter.obj()), iter.obj()->klass()->internal_name());
474 assert(oopDesc::is_oop(iter.obj(), UseConcMarkSweepGC), "Adding a bad reference"); 474 assert(oopDesc::is_oop(iter.obj(), UseConcMarkSweepGC), "Adding a bad reference");
475 iter.next(); 475 iter.next();
476 } 476 }
477 iter.complete_enqeue(); 477 iter.complete_enqueue();
478 // Close the reachable set 478 // Close the reachable set
479 complete_gc->do_void(); 479 complete_gc->do_void();
480 // Clear the list. 480 // Clear the list.
481 refs_list.set_head(NULL); 481 refs_list.set_head(NULL);
482 refs_list.set_length(0); 482 refs_list.set_length(0);