mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8049426: Minor cleanups after G1 class unloading
Reviewed-by: stefank, brutisso
This commit is contained in:
parent
1b001a2afd
commit
b77bc85799
4 changed files with 5 additions and 4 deletions
|
@ -328,6 +328,8 @@ protected:
|
|||
static size_t byte_sizeof(int length) { return sizeof(Array<T>) + MAX2(length - 1, 0) * sizeof(T); }
|
||||
|
||||
// WhiteBox API helper.
|
||||
// Can't distinguish between array of length 0 and length 1,
|
||||
// will always return 0 in those cases.
|
||||
static int bytes_to_length(size_t bytes) {
|
||||
assert(is_size_aligned(bytes, BytesPerWord), "Must be, for now");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue