diff options
| author | 2015-08-06 03:12:39 +0000 | |
|---|---|---|
| committer | 2015-08-06 03:12:39 +0000 | |
| commit | 1f3f766d3b365d01f36b85dc19d40f754fa48533 (patch) | |
| tree | fe08749dea3ca6cad97bce48416beb37203efdf5 /runtime/linear_alloc.h | |
| parent | 275bc5e5f318ba6ea1bad6c89c2924d1248b7523 (diff) | |
| parent | 54d220eb9cc51215d75b9e0fe921b94bebbb3fd6 (diff) | |
Merge "Move ArtFields and ArtMethods to be a length prefixed array"
Diffstat (limited to 'runtime/linear_alloc.h')
| -rw-r--r-- | runtime/linear_alloc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/linear_alloc.h b/runtime/linear_alloc.h index 743ee77e17..1b21527317 100644 --- a/runtime/linear_alloc.h +++ b/runtime/linear_alloc.h @@ -33,7 +33,7 @@ class LinearAlloc { // Realloc never frees the input pointer, it is the caller's job to do this if necessary. void* Realloc(Thread* self, void* ptr, size_t old_size, size_t new_size) REQUIRES(!lock_); - // Allocate and construct an array of structs of type T. + // Allocate an array of structs of type T. template<class T> T* AllocArray(Thread* self, size_t elements) REQUIRES(!lock_) { return reinterpret_cast<T*>(Alloc(self, elements * sizeof(T))); |