klass.inline.hpp revision 1472:c18cbe5936b8
1107120Sjulian/*
2107120Sjulian * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
3139823Simp * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4139823Simp *
5139823Simp * This code is free software; you can redistribute it and/or modify it
6107120Sjulian * under the terms of the GNU General Public License version 2 only, as
7107120Sjulian * published by the Free Software Foundation.
8107120Sjulian *
9107120Sjulian * This code is distributed in the hope that it will be useful, but WITHOUT
10107120Sjulian * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11107120Sjulian * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12107120Sjulian * version 2 for more details (a copy is included in the LICENSE file that
13107120Sjulian * accompanied this code).
14107120Sjulian *
15107120Sjulian * You should have received a copy of the GNU General Public License version
16107120Sjulian * 2 along with this work; if not, write to the Free Software Foundation,
17107120Sjulian * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18107120Sjulian *
19107120Sjulian * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20107120Sjulian * or visit www.oracle.com if you need additional information or have any
21107120Sjulian * questions.
22107120Sjulian *
23107120Sjulian */
24107120Sjulian
25107120Sjulianinline void Klass::set_prototype_header(markOop header) {
26107120Sjulian  assert(!header->has_bias_pattern() || oop_is_instance(), "biased locking currently only supported for Java instances");
27107120Sjulian  _prototype_header = header;
28107120Sjulian}
29107120Sjulian