1 /* |
1 /* |
2 * Copyright (c) 1998, 2009, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2010, 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. |
128 void set_f1(oop f1) { |
128 void set_f1(oop f1) { |
129 oop existing_f1 = _f1; // read once |
129 oop existing_f1 = _f1; // read once |
130 assert(existing_f1 == NULL || existing_f1 == f1, "illegal field change"); |
130 assert(existing_f1 == NULL || existing_f1 == f1, "illegal field change"); |
131 oop_store(&_f1, f1); |
131 oop_store(&_f1, f1); |
132 } |
132 } |
|
133 void set_f1_if_null_atomic(oop f1); |
133 void set_f2(intx f2) { assert(_f2 == 0 || _f2 == f2, "illegal field change"); _f2 = f2; } |
134 void set_f2(intx f2) { assert(_f2 == 0 || _f2 == f2, "illegal field change"); _f2 = f2; } |
134 int as_flags(TosState state, bool is_final, bool is_vfinal, bool is_volatile, |
135 int as_flags(TosState state, bool is_final, bool is_vfinal, bool is_volatile, |
135 bool is_method_interface, bool is_method); |
136 bool is_method_interface, bool is_method); |
136 void set_flags(intx flags) { _flags = flags; } |
137 void set_flags(intx flags) { _flags = flags; } |
137 |
138 |