Mercurial > hg > truffle
comparison src/share/vm/oops/oop.hpp @ 14521:29ccc4cbabca
Merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Wed, 12 Mar 2014 13:30:08 +0100 |
parents | 7f0e0366ec81 |
children | 4ca6dc0799b6 |
comparison
equal
deleted
inserted
replaced
14520:f84115370178 | 14521:29ccc4cbabca |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 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 | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
107 // Sometimes (for complicated concurrency-related reasons), it is useful | 107 // Sometimes (for complicated concurrency-related reasons), it is useful |
108 // to be able to figure out the size of an object knowing its klass. | 108 // to be able to figure out the size of an object knowing its klass. |
109 int size_given_klass(Klass* klass); | 109 int size_given_klass(Klass* klass); |
110 | 110 |
111 // type test operations (inlined in oop.inline.h) | 111 // type test operations (inlined in oop.inline.h) |
112 bool is_instance() const; | 112 bool is_instance() const; |
113 bool is_instanceMirror() const; | 113 bool is_instanceMirror() const; |
114 bool is_instanceRef() const; | 114 bool is_instanceClassLoader() const; |
115 bool is_array() const; | 115 bool is_instanceRef() const; |
116 bool is_objArray() const; | 116 bool is_array() const; |
117 bool is_typeArray() const; | 117 bool is_objArray() const; |
118 bool is_typeArray() const; | |
118 | 119 |
119 private: | 120 private: |
120 // field addresses in oop | 121 // field addresses in oop |
121 void* field_base(int offset) const; | 122 void* field_base(int offset) const; |
122 | 123 |
360 // safepoint if called on a biased object. Calling code must be aware of that. | 361 // safepoint if called on a biased object. Calling code must be aware of that. |
361 intptr_t identity_hash(); | 362 intptr_t identity_hash(); |
362 intptr_t slow_identity_hash(); | 363 intptr_t slow_identity_hash(); |
363 | 364 |
364 // Alternate hashing code if string table is rehashed | 365 // Alternate hashing code if string table is rehashed |
365 unsigned int new_hash(jint seed); | 366 unsigned int new_hash(juint seed); |
366 | 367 |
367 // marks are forwarded to stack when object is locked | 368 // marks are forwarded to stack when object is locked |
368 bool has_displaced_mark() const; | 369 bool has_displaced_mark() const; |
369 markOop displaced_mark() const; | 370 markOop displaced_mark() const; |
370 void set_displaced_mark(markOop m); | 371 void set_displaced_mark(markOop m); |