Mercurial > hg > truffle
comparison src/share/vm/oops/oop.hpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 7f0e0366ec81 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2013, 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_instanceClassLoader() const; | 114 bool is_instanceRef() const; |
115 bool is_instanceRef() const; | 115 bool is_array() const; |
116 bool is_array() const; | 116 bool is_objArray() const; |
117 bool is_objArray() const; | 117 bool is_typeArray() const; |
118 bool is_typeArray() const; | |
119 | 118 |
120 private: | 119 private: |
121 // field addresses in oop | 120 // field addresses in oop |
122 void* field_base(int offset) const; | 121 void* field_base(int offset) const; |
123 | 122 |
361 // safepoint if called on a biased object. Calling code must be aware of that. | 360 // safepoint if called on a biased object. Calling code must be aware of that. |
362 intptr_t identity_hash(); | 361 intptr_t identity_hash(); |
363 intptr_t slow_identity_hash(); | 362 intptr_t slow_identity_hash(); |
364 | 363 |
365 // Alternate hashing code if string table is rehashed | 364 // Alternate hashing code if string table is rehashed |
366 unsigned int new_hash(juint seed); | 365 unsigned int new_hash(jint seed); |
367 | 366 |
368 // marks are forwarded to stack when object is locked | 367 // marks are forwarded to stack when object is locked |
369 bool has_displaced_mark() const; | 368 bool has_displaced_mark() const; |
370 markOop displaced_mark() const; | 369 markOop displaced_mark() const; |
371 void set_displaced_mark(markOop m); | 370 void set_displaced_mark(markOop m); |