mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8202709: Move oopDesc::is_archive_object to MetaspaceShared::is_archive_object
Reviewed-by: ehelin, jiangli
This commit is contained in:
parent
7574941d5f
commit
90a2a92fe3
8 changed files with 14 additions and 17 deletions
|
@ -26,6 +26,7 @@
|
|||
#define SHARE_VM_OOPS_OOP_INLINE_HPP
|
||||
|
||||
#include "gc/shared/collectedHeap.hpp"
|
||||
#include "memory/metaspaceShared.hpp"
|
||||
#include "oops/access.inline.hpp"
|
||||
#include "oops/arrayKlass.hpp"
|
||||
#include "oops/arrayOop.hpp"
|
||||
|
@ -329,8 +330,8 @@ void oopDesc::forward_to(oop p) {
|
|||
"forwarding to something not aligned");
|
||||
assert(Universe::heap()->is_in_reserved(p),
|
||||
"forwarding to something not in heap");
|
||||
assert(!is_archive_object(oop(this)) &&
|
||||
!is_archive_object(p),
|
||||
assert(!MetaspaceShared::is_archive_object(oop(this)) &&
|
||||
!MetaspaceShared::is_archive_object(p),
|
||||
"forwarding archive object");
|
||||
markOop m = markOopDesc::encode_pointer_as_mark(p);
|
||||
assert(m->decode_pointer() == p, "encoding must be reversable");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue