10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 #ifndef SHARE_GC_Z_ZBARRIER_HPP
25 #define SHARE_GC_Z_ZBARRIER_HPP
26
27 #include "memory/allStatic.hpp"
28 #include "memory/iterator.hpp"
29 #include "oops/oop.hpp"
30
31 typedef bool (*ZBarrierFastPath)(uintptr_t);
32 typedef uintptr_t (*ZBarrierSlowPath)(uintptr_t);
33
34 class ZBarrier : public AllStatic {
35 private:
36 static const bool GCThread = true;
37 static const bool AnyThread = false;
38
39 static const bool Follow = true;
40 static const bool DontFollow = false;
41
42 static const bool Strong = false;
43 static const bool Finalizable = true;
44
45 static const bool Publish = true;
46 static const bool Overflow = false;
47
48 template <ZBarrierFastPath fast_path> static void self_heal(volatile oop* p, uintptr_t addr, uintptr_t heal_addr);
49
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 #ifndef SHARE_GC_Z_ZBARRIER_HPP
25 #define SHARE_GC_Z_ZBARRIER_HPP
26
27 #include "memory/allStatic.hpp"
28 #include "memory/iterator.hpp"
29 #include "oops/oop.hpp"
30 #include "oops/inlineKlass.hpp"
31
32 typedef bool (*ZBarrierFastPath)(uintptr_t);
33 typedef uintptr_t (*ZBarrierSlowPath)(uintptr_t);
34
35 class ZBarrier : public AllStatic {
36 private:
37 static const bool GCThread = true;
38 static const bool AnyThread = false;
39
40 static const bool Follow = true;
41 static const bool DontFollow = false;
42
43 static const bool Strong = false;
44 static const bool Finalizable = true;
45
46 static const bool Publish = true;
47 static const bool Overflow = false;
48
49 template <ZBarrierFastPath fast_path> static void self_heal(volatile oop* p, uintptr_t addr, uintptr_t heal_addr);
50
|