src/share/vm/gc_implementation/shared/gcId.cpp

Thu, 13 Feb 2014 17:44:39 +0100

author
stefank
date
Thu, 13 Feb 2014 17:44:39 +0100
changeset 6971
7426d8d76305
parent 6904
0982ec23da03
permissions
-rw-r--r--

8034761: Remove the do_code_roots parameter from process_strong_roots
Reviewed-by: tschatzl, mgerdin, jmasa

brutisso@6904 1 /*
brutisso@6904 2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
brutisso@6904 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
brutisso@6904 4 *
brutisso@6904 5 * This code is free software; you can redistribute it and/or modify it
brutisso@6904 6 * under the terms of the GNU General Public License version 2 only, as
brutisso@6904 7 * published by the Free Software Foundation.
brutisso@6904 8 *
brutisso@6904 9 * This code is distributed in the hope that it will be useful, but WITHOUT
brutisso@6904 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
brutisso@6904 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
brutisso@6904 12 * version 2 for more details (a copy is included in the LICENSE file that
brutisso@6904 13 * accompanied this code).
brutisso@6904 14 *
brutisso@6904 15 * You should have received a copy of the GNU General Public License version
brutisso@6904 16 * 2 along with this work; if not, write to the Free Software Foundation,
brutisso@6904 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
brutisso@6904 18 *
brutisso@6904 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
brutisso@6904 20 * or visit www.oracle.com if you need additional information or have any
brutisso@6904 21 * questions.
brutisso@6904 22 *
brutisso@6904 23 */
brutisso@6904 24
brutisso@6904 25 #include "precompiled.hpp"
brutisso@6904 26 #include "gc_implementation/shared/gcId.hpp"
brutisso@6904 27 #include "runtime/safepoint.hpp"
brutisso@6904 28
brutisso@6904 29 uint GCId::_next_id = 0;
brutisso@6904 30
brutisso@6904 31 const GCId GCId::create() {
brutisso@6904 32 return GCId(_next_id++);
brutisso@6904 33 }
brutisso@6904 34 const GCId GCId::peek() {
brutisso@6904 35 return GCId(_next_id);
brutisso@6904 36 }
brutisso@6904 37 const GCId GCId::undefined() {
brutisso@6904 38 return GCId(UNDEFINED);
brutisso@6904 39 }
brutisso@6904 40 bool GCId::is_undefined() const {
brutisso@6904 41 return _id == UNDEFINED;
brutisso@6904 42 }

mercurial