src/share/vm/ci/ciCPCache.hpp

Mon, 26 Apr 2010 23:59:45 -0700

author
never
date
Mon, 26 Apr 2010 23:59:45 -0700
changeset 1832
b4776199210f
parent 1730
3cf667df43ef
child 1907
c18cbe5936b8
permissions
-rw-r--r--

6943485: JVMTI always on capabilities change code generation too much
Reviewed-by: twisti, dcubed

twisti@1572 1 /*
twisti@1730 2 * Copyright 2009-2010 Sun Microsystems, Inc. All Rights Reserved.
twisti@1572 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
twisti@1572 4 *
twisti@1572 5 * This code is free software; you can redistribute it and/or modify it
twisti@1572 6 * under the terms of the GNU General Public License version 2 only, as
twisti@1572 7 * published by the Free Software Foundation.
twisti@1572 8 *
twisti@1572 9 * This code is distributed in the hope that it will be useful, but WITHOUT
twisti@1572 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
twisti@1572 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
twisti@1572 12 * version 2 for more details (a copy is included in the LICENSE file that
twisti@1572 13 * accompanied this code).
twisti@1572 14 *
twisti@1572 15 * You should have received a copy of the GNU General Public License version
twisti@1572 16 * 2 along with this work; if not, write to the Free Software Foundation,
twisti@1572 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
twisti@1572 18 *
twisti@1572 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
twisti@1572 20 * CA 95054 USA or visit www.sun.com if you need additional information or
twisti@1572 21 * have any questions.
twisti@1572 22 *
twisti@1572 23 */
twisti@1572 24
twisti@1572 25 // ciCPCache
twisti@1572 26 //
twisti@1572 27 // This class represents a constant pool cache.
twisti@1572 28 //
twisti@1572 29 // Note: This class is called ciCPCache as ciConstantPoolCache is used
twisti@1572 30 // for something different.
twisti@1572 31 class ciCPCache : public ciObject {
twisti@1572 32 public:
twisti@1572 33 ciCPCache(constantPoolCacheHandle cpcache) : ciObject(cpcache) {}
twisti@1572 34
twisti@1572 35 // What kind of ciObject is this?
twisti@1572 36 bool is_cpcache() const { return true; }
twisti@1572 37
twisti@1572 38 // Get the offset in bytes from the oop to the f1 field of the
twisti@1572 39 // requested entry.
twisti@1572 40 size_t get_f1_offset(int index);
twisti@1572 41
twisti@1730 42 bool is_f1_null_at(int index);
twisti@1730 43
twisti@1572 44 void print();
twisti@1572 45 };

mercurial