mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
6860920: serialize.cpp shouldn't use objArrayOopDesc::base_offset_in_bytes(T_BYTE)
Serialize.cpp currently uses objArrayOopDesc::base_offset_in_bytes(T_BYTE), which seems to be wrong. Reviewed-by: coleenp, kvn
This commit is contained in:
parent
7229ae9b95
commit
6b849a12a0
3 changed files with 7 additions and 2 deletions
|
@ -38,6 +38,11 @@ class objArrayOopDesc : public arrayOopDesc {
|
|||
}
|
||||
|
||||
public:
|
||||
// Returns the offset of the first element.
|
||||
static int base_offset_in_bytes() {
|
||||
return arrayOopDesc::base_offset_in_bytes(T_OBJECT);
|
||||
}
|
||||
|
||||
// base is the address following the header.
|
||||
HeapWord* base() const { return (HeapWord*) arrayOopDesc::base(T_OBJECT); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue