src/share/vm/utilities/growableArray.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7088955 Cdiff src/share/vm/utilities/growableArray.hpp

src/share/vm/utilities/growableArray.hpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2010, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1997, 2011, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 75,84 **** --- 75,86 ---- extern "C" { typedef int (*_sort_Fn)(const void *, const void *); } class GenericGrowableArray : public ResourceObj { + friend class VMStructs; + protected: int _len; // current length int _max; // maximum length Arena* _arena; // Indicates where allocation occurs: // 0 means default ResourceArea
*** 134,143 **** --- 136,147 ---- return (void*)resource_allocate_bytes(thread, elementSize * _max); } }; template<class E> class GrowableArray : public GenericGrowableArray { + friend class VMStructs; + private: E* _data; // data array void grow(int j); void raw_at_put_grow(int i, const E& p, const E& fill);
src/share/vm/utilities/growableArray.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File