mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8144072: G1ParScanThreadState::update_rs does not need to call is_in_reserved
Reviewed-by: tschatzl, mgerdin
This commit is contained in:
parent
caaac8e679
commit
6d48bb8a25
2 changed files with 10 additions and 1 deletions
|
@ -101,7 +101,7 @@ class G1ParScanThreadState : public CHeapObj<mtGC> {
|
|||
template <class T> void update_rs(HeapRegion* from, T* p, oop o) {
|
||||
// If the new value of the field points to the same region or
|
||||
// is the to-space, we don't need to include it in the Rset updates.
|
||||
if (!from->is_in_reserved(o) && !from->is_young()) {
|
||||
if (!HeapRegion::is_in_same_region(p, o) && !from->is_young()) {
|
||||
size_t card_index = ctbs()->index_for(p);
|
||||
// If the card hasn't been added to the buffer, do it.
|
||||
if (ctbs()->mark_card_deferred(card_index)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue