# HG changeset patch # User zgu # Date 1548004837 18000 # Node ID 690aed53fef0b853b3973631766eb7dd0df47445 # Parent 1ffcf60745694b9a574d3eba985925d73a337123 8217342: Build failed with excluding JFR Reviewed-by: shade, pliden diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp --- a/src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp Sun Jan 20 16:55:21 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahBarrierSetC2.cpp Sun Jan 20 12:20:37 2019 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Red Hat, Inc. All rights reserved. + * Copyright (c) 2018, 2019, Red Hat, Inc. All rights reserved. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as @@ -22,9 +22,11 @@ */ #include "precompiled.hpp" +#include "gc/shared/barrierSet.hpp" #include "gc/shenandoah/shenandoahHeap.hpp" #include "gc/shenandoah/shenandoahHeuristics.hpp" #include "gc/shenandoah/shenandoahRuntime.hpp" +#include "gc/shenandoah/shenandoahThreadLocalData.hpp" #include "gc/shenandoah/c2/shenandoahBarrierSetC2.hpp" #include "gc/shenandoah/c2/shenandoahSupport.hpp" #include "opto/arraycopynode.hpp" diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp --- a/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp Sun Jan 20 16:55:21 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp Sun Jan 20 12:20:37 2019 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2018, Red Hat, Inc. All rights reserved. + * Copyright (c) 2015, 2019, Red Hat, Inc. All rights reserved. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as @@ -30,6 +30,7 @@ #include "gc/shenandoah/shenandoahHeap.hpp" #include "gc/shenandoah/shenandoahHeapRegion.hpp" #include "gc/shenandoah/shenandoahRuntime.hpp" +#include "gc/shenandoah/shenandoahThreadLocalData.hpp" #include "opto/arraycopynode.hpp" #include "opto/block.hpp" #include "opto/callnode.hpp" diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.inline.hpp --- a/src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.inline.hpp Sun Jan 20 16:55:21 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.inline.hpp Sun Jan 20 12:20:37 2019 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2018, Red Hat, Inc. All rights reserved. + * Copyright (c) 2015, 2019, Red Hat, Inc. All rights reserved. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as @@ -29,7 +29,7 @@ #include "gc/shenandoah/shenandoahBarrierSet.inline.hpp" #include "gc/shenandoah/shenandoahConcurrentMark.hpp" #include "gc/shenandoah/shenandoahMarkingContext.inline.hpp" -#include "gc/shenandoah/shenandoahStringDedup.hpp" +#include "gc/shenandoah/shenandoahStringDedup.inline.hpp" #include "gc/shenandoah/shenandoahTaskqueue.inline.hpp" #include "memory/iterator.inline.hpp" #include "oops/oop.inline.hpp" diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/shenandoah/shenandoahStrDedupQueue.cpp --- a/src/hotspot/share/gc/shenandoah/shenandoahStrDedupQueue.cpp Sun Jan 20 16:55:21 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/shenandoahStrDedupQueue.cpp Sun Jan 20 12:20:37 2019 -0500 @@ -27,7 +27,7 @@ #include "gc/shared/stringdedup/stringDedupThread.hpp" #include "gc/shenandoah/shenandoahHeap.inline.hpp" #include "gc/shenandoah/shenandoahStrDedupQueue.inline.hpp" -#include "gc/shenandoah/shenandoahStringDedup.hpp" +#include "gc/shenandoah/shenandoahStringDedup.inline.hpp" #include "logging/log.hpp" #include "runtime/mutex.hpp" #include "runtime/mutexLocker.hpp" diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/shenandoah/shenandoahStringDedup.hpp --- a/src/hotspot/share/gc/shenandoah/shenandoahStringDedup.hpp Sun Jan 20 16:55:21 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/shenandoahStringDedup.hpp Sun Jan 20 12:20:37 2019 -0500 @@ -24,7 +24,6 @@ #ifndef SHARE_GC_SHENANDOAH_SHENANDOAHSTRINGDEDUP_HPP #define SHARE_GC_SHENANDOAH_SHENANDOAHSTRINGDEDUP_HPP -#include "classfile/javaClasses.hpp" #include "gc/shared/stringdedup/stringDedup.hpp" #include "memory/iterator.hpp" @@ -42,10 +41,7 @@ static void parallel_oops_do(OopClosure* cl, uint worker_id); static void oops_do_slow(OopClosure* cl); - static inline bool is_candidate(oop obj) { - return java_lang_String::is_instance_inlined(obj) && - java_lang_String::value(obj) != NULL; - } + static inline bool is_candidate(oop obj); private: static void unlink_or_oops_do(BoolObjectClosure* is_alive, OopClosure* keep_alive, diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/shenandoah/shenandoahStringDedup.inline.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/hotspot/share/gc/shenandoah/shenandoahStringDedup.inline.hpp Sun Jan 20 12:20:37 2019 -0500 @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2019, Red Hat, Inc. All rights reserved. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + * + */ + +#ifndef SHARE_GC_SHENANDOAH_SHENANDOAHSTRINGDEDUP_INLINE_HPP +#define SHARE_GC_SHENANDOAH_SHENANDOAHSTRINGDEDUP_INLINE_HPP + +#include "classfile/javaClasses.inline.hpp" +#include "gc/shenandoah/shenandoahStringDedup.hpp" + +bool ShenandoahStringDedup::is_candidate(oop obj) { + return java_lang_String::is_instance_inlined(obj) && + java_lang_String::value(obj) != NULL; +} + +#endif // SHARE_GC_SHENANDOAH_SHENANDOAHSTRINGDEDUP_INLINE_HPP diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp --- a/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp Sun Jan 20 16:55:21 2019 +0100 +++ b/src/hotspot/share/gc/z/c2/zBarrierSetC2.cpp Sun Jan 20 12:20:37 2019 -0500 @@ -32,6 +32,7 @@ #include "opto/node.hpp" #include "opto/type.hpp" #include "utilities/macros.hpp" +#include "gc/z/zBarrierSet.hpp" #include "gc/z/c2/zBarrierSetC2.hpp" #include "gc/z/zThreadLocalData.hpp" #include "gc/z/zBarrierSetRuntime.hpp" diff -r 1ffcf6074569 -r 690aed53fef0 src/hotspot/share/gc/z/zTracer.cpp --- a/src/hotspot/share/gc/z/zTracer.cpp Sun Jan 20 16:55:21 2019 +0100 +++ b/src/hotspot/share/gc/z/zTracer.cpp Sun Jan 20 12:20:37 2019 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -27,6 +27,7 @@ #include "gc/shared/gcId.hpp" #include "gc/shared/gcLocker.hpp" #include "jfr/jfrEvents.hpp" +#include "runtime/safepoint.hpp" #include "runtime/safepointVerifiers.hpp" #if INCLUDE_JFR #include "jfr/metadata/jfrSerializer.hpp"