mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8147461: Use byte offsets for vtable start and vtable length offsets
Reviewed-by: cjplummer, coleenp, dnsimon
This commit is contained in:
parent
1fdb299974
commit
1163c0a2cb
21 changed files with 73 additions and 77 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -173,6 +173,9 @@ class vtableEntry VALUE_OBJ_CLASS_SPEC {
|
|||
static int size() {
|
||||
return sizeof(vtableEntry) / sizeof(HeapWord);
|
||||
}
|
||||
static int size_in_bytes() {
|
||||
return sizeof(vtableEntry);
|
||||
}
|
||||
static int method_offset_in_bytes() { return offset_of(vtableEntry, _method); }
|
||||
Method* method() const { return _method; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue