Mercurial > hg > graal-jvmci-8
annotate src/share/vm/oops/cpCacheKlass.hpp @ 1793:d257356e35f0
6939224: MethodHandle.invokeGeneric needs to perform the correct set of conversions
Reviewed-by: never
author | jrose |
---|---|
date | Mon, 13 Sep 2010 23:24:30 -0700 |
parents | 126ea7725993 |
children | f95d63e2154a |
rev | line source |
---|---|
0 | 1 /* |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1155
diff
changeset
|
2 * Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved. |
0 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1155
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1155
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1155
diff
changeset
|
21 * questions. |
0 | 22 * |
23 */ | |
24 | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
25 class constantPoolCacheKlass: public Klass { |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
26 juint _alloc_size; // allocation profiling support |
0 | 27 public: |
28 // Dispatched klass operations | |
29 bool oop_is_constantPoolCache() const { return true; } | |
30 int oop_size(oop obj) const; | |
31 int klass_oop_size() const { return object_size(); } | |
32 | |
33 // Allocation | |
34 DEFINE_ALLOCATE_PERMANENT(constantPoolCacheKlass); | |
542
9a25e0c45327
6792421: assert(_bitMap->isMarked(addr+size-1),inconsistent Printezis mark)
jmasa
parents:
196
diff
changeset
|
35 constantPoolCacheOop allocate(int length, bool is_conc_safe, TRAPS); |
0 | 36 static klassOop create_klass(TRAPS); |
37 | |
38 // Casting from klassOop | |
39 static constantPoolCacheKlass* cast(klassOop k) { | |
40 assert(k->klass_part()->oop_is_constantPoolCache(), "cast to constantPoolCacheKlass"); | |
41 return (constantPoolCacheKlass*)k->klass_part(); | |
42 } | |
43 | |
44 // Sizing | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
45 static int header_size() { return oopDesc::header_size() + sizeof(constantPoolCacheKlass)/HeapWordSize; } |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
46 int object_size() const { return align_object_size(header_size()); } |
0 | 47 |
48 // Garbage collection | |
49 void oop_follow_contents(oop obj); | |
50 int oop_adjust_pointers(oop obj); | |
542
9a25e0c45327
6792421: assert(_bitMap->isMarked(addr+size-1),inconsistent Printezis mark)
jmasa
parents:
196
diff
changeset
|
51 virtual bool oop_is_conc_safe(oop obj) const; |
0 | 52 |
53 // Parallel Scavenge and Parallel Old | |
54 PARALLEL_GC_DECLS | |
55 | |
56 // Iterators | |
57 int oop_oop_iterate(oop obj, OopClosure* blk); | |
58 int oop_oop_iterate_m(oop obj, OopClosure* blk, MemRegion mr); | |
59 | |
113
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
60 // Allocation profiling support |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
61 juint alloc_size() const { return _alloc_size; } |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
62 void set_alloc_size(juint n) { _alloc_size = n; } |
ba764ed4b6f2
6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents:
0
diff
changeset
|
63 |
0 | 64 // Printing |
1155
4e6abf09f540
6912062: disassembler plugin needs to produce symbolic information in product mode
jrose
parents:
579
diff
changeset
|
65 void oop_print_value_on(oop obj, outputStream* st); |
0 | 66 void oop_print_on(oop obj, outputStream* st); |
67 | |
68 // Verification | |
69 const char* internal_name() const; | |
70 void oop_verify_on(oop obj, outputStream* st); | |
71 }; |