aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/utilities
diff options
context:
space:
mode:
authordcubed <none@none>2013-06-01 09:28:26 -0700
committerdcubed <none@none>2013-06-01 09:28:26 -0700
commit5770b3ad8076951866c3f0cdaf2d9b7a9d6d20a0 (patch)
tree74bdac99178031be71db7f145a2b5226f6aa6991 /src/share/vm/utilities
parent0795d900da8a606bf78c38fe0da6cd5dba475733 (diff)
parent8ede5e3c927458a034b46286764fa13794ee39f5 (diff)
Merge
Diffstat (limited to 'src/share/vm/utilities')
-rw-r--r--src/share/vm/utilities/array.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/share/vm/utilities/array.hpp b/src/share/vm/utilities/array.hpp
index 5578ed9b6..048a57812 100644
--- a/src/share/vm/utilities/array.hpp
+++ b/src/share/vm/utilities/array.hpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2013, 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
@@ -320,7 +320,7 @@ protected:
void* operator new(size_t size, ClassLoaderData* loader_data, int length, bool read_only, TRAPS) {
size_t word_size = Array::size(length);
return (void*) Metaspace::allocate(loader_data, word_size, read_only,
- Metaspace::NonClassType, CHECK_NULL);
+ MetaspaceObj::array_type(sizeof(T)), CHECK_NULL);
}
static size_t byte_sizeof(int length) { return sizeof(Array<T>) + MAX2(length - 1, 0) * sizeof(T); }