src/hotspot/share/gc/shared/barrierSet.cpp
changeset 47998 fb0275c320a0
parent 47216 71c04702a3d5
child 49484 ee8fa73b90f9
equal deleted inserted replaced
47997:55c43e677ded 47998:fb0275c320a0
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, 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.
    25 #include "precompiled.hpp"
    25 #include "precompiled.hpp"
    26 #include "gc/shared/barrierSet.inline.hpp"
    26 #include "gc/shared/barrierSet.inline.hpp"
    27 #include "gc/shared/collectedHeap.hpp"
    27 #include "gc/shared/collectedHeap.hpp"
    28 #include "memory/universe.hpp"
    28 #include "memory/universe.hpp"
    29 
    29 
       
    30 BarrierSet* BarrierSet::_bs = NULL;
       
    31 
    30 // count is number of array elements being written
    32 // count is number of array elements being written
    31 void BarrierSet::static_write_ref_array_pre(HeapWord* start, size_t count) {
    33 void BarrierSet::static_write_ref_array_pre(HeapWord* start, size_t count) {
    32   assert(count <= (size_t)max_intx, "count too large");
    34   assert(count <= (size_t)max_intx, "count too large");
    33   if (UseCompressedOops) {
    35   if (UseCompressedOops) {
    34     Universe::heap()->barrier_set()->write_ref_array_pre((narrowOop*)start, (int)count, false);
    36     Universe::heap()->barrier_set()->write_ref_array_pre((narrowOop*)start, (int)count, false);