8049426: Minor cleanups after G1 class unloading

Reviewed-by: stefank, brutisso
This commit is contained in:
Erik Helin 2014-07-09 16:44:30 +02:00
parent 1b001a2afd
commit b77bc85799
4 changed files with 5 additions and 4 deletions

View file

@ -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");