equal
deleted
inserted
replaced
636 assert(derived_loc != base_loc, "Base and derived in same location"); |
636 assert(derived_loc != base_loc, "Base and derived in same location"); |
637 if (_active) { |
637 if (_active) { |
638 assert(*derived_loc != (oop)base_loc, "location already added"); |
638 assert(*derived_loc != (oop)base_loc, "location already added"); |
639 assert(_list != NULL, "list must exist"); |
639 assert(_list != NULL, "list must exist"); |
640 intptr_t offset = value_of_loc(derived_loc) - value_of_loc(base_loc); |
640 intptr_t offset = value_of_loc(derived_loc) - value_of_loc(base_loc); |
641 assert(offset >= -1000000, "wrong derived pointer info"); |
641 // This assert is invalid because derived pointers can be |
|
642 // arbitrarily far away from their base. |
|
643 // assert(offset >= -1000000, "wrong derived pointer info"); |
642 |
644 |
643 if (TraceDerivedPointers) { |
645 if (TraceDerivedPointers) { |
644 tty->print_cr( |
646 tty->print_cr( |
645 "Add derived pointer@" INTPTR_FORMAT |
647 "Add derived pointer@" INTPTR_FORMAT |
646 " - Derived: " INTPTR_FORMAT |
648 " - Derived: " INTPTR_FORMAT |