Thu, 27 May 2010 19:08:38 -0700
6941466: Oracle rebranding changes for Hotspot repositories
Summary: Change all the Sun copyrights to Oracle copyright
Reviewed-by: ohair
twisti@1572 | 1 | /* |
trims@1907 | 2 | * Copyright (c) 2009, 2010, Oracle and/or its affiliates. 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 | * |
trims@1907 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
trims@1907 | 20 | * or visit www.oracle.com if you need additional information or have any |
trims@1907 | 21 | * questions. |
twisti@1572 | 22 | * |
twisti@1572 | 23 | */ |
twisti@1572 | 24 | |
twisti@1572 | 25 | #include "incls/_precompiled.incl" |
twisti@1572 | 26 | #include "incls/_ciCPCache.cpp.incl" |
twisti@1572 | 27 | |
twisti@1572 | 28 | // ciCPCache |
twisti@1572 | 29 | |
twisti@1572 | 30 | // ------------------------------------------------------------------ |
twisti@1572 | 31 | // ciCPCache::get_f1_offset |
twisti@1572 | 32 | size_t ciCPCache::get_f1_offset(int index) { |
twisti@1572 | 33 | // Calculate the offset from the constantPoolCacheOop to the f1 |
twisti@1572 | 34 | // field. |
twisti@1572 | 35 | ByteSize f1_offset = |
twisti@1572 | 36 | constantPoolCacheOopDesc::entry_offset(index) + |
twisti@1572 | 37 | ConstantPoolCacheEntry::f1_offset(); |
twisti@1572 | 38 | |
twisti@1572 | 39 | return in_bytes(f1_offset); |
twisti@1572 | 40 | } |
twisti@1572 | 41 | |
twisti@1573 | 42 | |
twisti@1572 | 43 | // ------------------------------------------------------------------ |
twisti@1730 | 44 | // ciCPCache::is_f1_null_at |
twisti@1730 | 45 | bool ciCPCache::is_f1_null_at(int index) { |
twisti@1730 | 46 | VM_ENTRY_MARK; |
twisti@1730 | 47 | constantPoolCacheOop cpcache = (constantPoolCacheOop) get_oop(); |
twisti@1730 | 48 | oop f1 = cpcache->secondary_entry_at(index)->f1(); |
twisti@1730 | 49 | return (f1 == NULL); |
twisti@1730 | 50 | } |
twisti@1730 | 51 | |
twisti@1730 | 52 | |
twisti@1730 | 53 | // ------------------------------------------------------------------ |
twisti@1572 | 54 | // ciCPCache::print |
twisti@1572 | 55 | // |
twisti@1572 | 56 | // Print debugging information about the cache. |
twisti@1572 | 57 | void ciCPCache::print() { |
twisti@1572 | 58 | Unimplemented(); |
twisti@1572 | 59 | } |