# HG changeset patch # User rehn # Date 1548927099 -3600 # Node ID 881c5fbeb849a56b26a629caba28575c08dbf24c # Parent dfacdb9714948b491521cab4f80e54c273531bcf 8218041: Assorted wrong/missing includes Reviewed-by: dholmes, kbarrett, stefank, shade diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/cpu/zero/cppInterpreter_zero.cpp --- a/src/hotspot/cpu/zero/cppInterpreter_zero.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/cpu/zero/cppInterpreter_zero.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -41,6 +41,7 @@ #include "runtime/atomic.hpp" #include "runtime/deoptimization.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/jniHandles.inline.hpp" #include "runtime/orderAccess.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/aot/aotLoader.cpp --- a/src/hotspot/share/aot/aotLoader.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/aot/aotLoader.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, 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 @@ -30,7 +30,7 @@ #include "memory/allocation.inline.hpp" #include "oops/method.hpp" #include "runtime/handles.inline.hpp" -#include "runtime/os.hpp" +#include "runtime/os.inline.hpp" #include "runtime/timerTrace.hpp" GrowableArray* AOTLoader::_heaps = new(ResourceObj::C_HEAP, mtCode) GrowableArray (2, true); diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/c1/c1_Runtime1.cpp --- a/src/hotspot/share/c1/c1_Runtime1.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/c1/c1_Runtime1.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -57,6 +57,7 @@ #include "runtime/compilationPolicy.hpp" #include "runtime/fieldDescriptor.inline.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/sharedRuntime.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/ci/ciEnv.cpp --- a/src/hotspot/share/ci/ciEnv.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/ci/ciEnv.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -55,6 +55,7 @@ #include "oops/objArrayOop.inline.hpp" #include "oops/oop.inline.hpp" #include "prims/jvmtiExport.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/init.hpp" #include "runtime/reflection.hpp" #include "runtime/jniHandles.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/ci/ciMethod.cpp --- a/src/hotspot/share/ci/ciMethod.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/ci/ciMethod.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -46,6 +46,7 @@ #include "oops/oop.inline.hpp" #include "prims/nativeLookup.hpp" #include "runtime/deoptimization.hpp" +#include "runtime/handles.inline.hpp" #include "utilities/bitMap.inline.hpp" #include "utilities/xmlstream.hpp" #ifdef COMPILER2 diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/ci/ciReplay.cpp --- a/src/hotspot/share/ci/ciReplay.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/ci/ciReplay.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 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 @@ -36,6 +36,7 @@ #include "oops/method.inline.hpp" #include "oops/oop.inline.hpp" #include "runtime/fieldDescriptor.inline.hpp" +#include "runtime/handles.inline.hpp" #include "utilities/copy.hpp" #include "utilities/macros.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/classfile/classLoader.cpp --- a/src/hotspot/share/classfile/classLoader.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/classfile/classLoader.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -56,7 +56,6 @@ #include "prims/jvm_misc.hpp" #include "runtime/arguments.hpp" #include "runtime/compilationPolicy.hpp" -#include "runtime/handles.hpp" #include "runtime/handles.inline.hpp" #include "runtime/init.hpp" #include "runtime/interfaceSupport.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/compiler/compileBroker.cpp --- a/src/hotspot/share/compiler/compileBroker.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/compiler/compileBroker.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -48,6 +48,7 @@ #include "runtime/arguments.hpp" #include "runtime/atomic.hpp" #include "runtime/compilationPolicy.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/init.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/gc/cms/parNewGeneration.cpp --- a/src/hotspot/share/gc/cms/parNewGeneration.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/gc/cms/parNewGeneration.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -59,7 +59,6 @@ #include "oops/objArrayOop.hpp" #include "oops/oop.inline.hpp" #include "runtime/atomic.hpp" -#include "runtime/handles.hpp" #include "runtime/handles.inline.hpp" #include "runtime/java.hpp" #include "runtime/thread.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.cpp --- a/src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/shenandoahConcurrentMark.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -46,6 +46,7 @@ #include "memory/metaspace.hpp" #include "memory/resourceArea.hpp" #include "oops/oop.inline.hpp" +#include "runtime/handles.inline.hpp" template class ShenandoahInitMarkRootsClosure : public OopClosure { diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp --- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -65,6 +65,8 @@ #include "gc/shenandoah/heuristics/shenandoahTraversalHeuristics.hpp" #include "memory/metaspace.hpp" +#include "runtime/interfaceSupport.inline.hpp" +#include "runtime/safepointMechanism.hpp" #include "runtime/vmThread.hpp" #include "services/mallocTracker.hpp" @@ -1863,6 +1865,22 @@ return _free_set->used(); } +bool ShenandoahHeap::try_cancel_gc() { + while (true) { + jbyte prev = _cancelled_gc.cmpxchg(CANCELLED, CANCELLABLE); + if (prev == CANCELLABLE) return true; + else if (prev == CANCELLED) return false; + assert(ShenandoahSuspendibleWorkers, "should not get here when not using suspendible workers"); + assert(prev == NOT_CANCELLED, "must be NOT_CANCELLED"); + { + // We need to provide a safepoint here, otherwise we might + // spin forever if a SP is pending. + ThreadBlockInVM sp(JavaThread::current()); + SpinPause(); + } + } +} + void ShenandoahHeap::cancel_gc(GCCause::Cause cause) { if (try_cancel_gc()) { FormatBuffer<> msg("Cancelling GC: %s", GCCause::to_string(cause)); diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp --- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2018, Red Hat, Inc. All rights reserved. + * Copyright (c) 2013, 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 @@ -380,7 +380,7 @@ }; ShenandoahSharedEnumFlag _cancelled_gc; - inline bool try_cancel_gc(); + bool try_cancel_gc(); public: static address cancelled_gc_addr(); diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp --- a/src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp Thu Jan 31 10:31:39 2019 +0100 @@ -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 @@ -31,7 +31,6 @@ #include "gc/shenandoah/shenandoahAsserts.hpp" #include "gc/shenandoah/shenandoahBarrierSet.inline.hpp" #include "gc/shenandoah/shenandoahBrooksPointer.inline.hpp" -#include "gc/shenandoah/shenandoahCollectionSet.hpp" #include "gc/shenandoah/shenandoahCollectionSet.inline.hpp" #include "gc/shenandoah/shenandoahWorkGroup.hpp" #include "gc/shenandoah/shenandoahHeap.hpp" @@ -42,8 +41,6 @@ #include "gc/shenandoah/shenandoahThreadLocalData.hpp" #include "oops/oop.inline.hpp" #include "runtime/atomic.hpp" -#include "runtime/interfaceSupport.inline.hpp" -#include "runtime/prefetch.hpp" #include "runtime/prefetch.inline.hpp" #include "runtime/thread.hpp" #include "utilities/copy.hpp" @@ -216,22 +213,6 @@ } } -inline bool ShenandoahHeap::try_cancel_gc() { - while (true) { - jbyte prev = _cancelled_gc.cmpxchg(CANCELLED, CANCELLABLE); - if (prev == CANCELLABLE) return true; - else if (prev == CANCELLED) return false; - assert(ShenandoahSuspendibleWorkers, "should not get here when not using suspendible workers"); - assert(prev == NOT_CANCELLED, "must be NOT_CANCELLED"); - { - // We need to provide a safepoint here, otherwise we might - // spin forever if a SP is pending. - ThreadBlockInVM sp(JavaThread::current()); - SpinPause(); - } - } -} - inline void ShenandoahHeap::clear_cancelled_gc() { _cancelled_gc.set(CANCELLABLE); _oom_evac_handler.clear(); diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/gc/z/zFuture.inline.hpp --- a/src/hotspot/share/gc/z/zFuture.inline.hpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/gc/z/zFuture.inline.hpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 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 @@ -25,7 +25,6 @@ #define SHARE_GC_Z_ZFUTURE_INLINE_HPP #include "gc/z/zFuture.hpp" -#include "runtime/interfaceSupport.inline.hpp" #include "runtime/semaphore.inline.hpp" #include "runtime/thread.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/jfr/recorder/repository/jfrChunkRotation.cpp --- a/src/hotspot/share/jfr/recorder/repository/jfrChunkRotation.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/jfr/recorder/repository/jfrChunkRotation.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 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 @@ -26,6 +26,7 @@ #include "jfr/jni/jfrJavaSupport.hpp" #include "jfr/recorder/repository/jfrChunkRotation.hpp" #include "jfr/recorder/repository/jfrChunkWriter.hpp" +#include "runtime/handles.inline.hpp" static jobject chunk_monitor = NULL; static intptr_t threshold = 0; diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp --- a/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/jfr/recorder/repository/jfrEmergencyDump.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 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 @@ -31,7 +31,7 @@ #include "jfr/utilities/jfrTypes.hpp" #include "memory/resourceArea.hpp" #include "runtime/atomic.hpp" -#include "runtime/handles.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/globals.hpp" #include "runtime/mutexLocker.hpp" #include "runtime/thread.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/jfr/writers/jfrJavaEventWriter.cpp --- a/src/hotspot/share/jfr/writers/jfrJavaEventWriter.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/jfr/writers/jfrJavaEventWriter.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, 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 @@ -35,7 +35,7 @@ #include "oops/instanceKlass.hpp" #include "oops/oop.inline.hpp" #include "runtime/fieldDescriptor.inline.hpp" -#include "runtime/handles.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/jniHandles.inline.hpp" #include "runtime/thread.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/jvmci/compilerRuntime.cpp --- a/src/hotspot/share/jvmci/compilerRuntime.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/jvmci/compilerRuntime.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -22,6 +22,7 @@ */ #include "precompiled.hpp" +#include "aot/aotLoader.hpp" #include "classfile/stringTable.hpp" #include "classfile/symbolTable.hpp" #include "interpreter/linkResolver.hpp" @@ -29,12 +30,12 @@ #include "oops/cpCache.inline.hpp" #include "oops/oop.inline.hpp" #include "runtime/compilationPolicy.hpp" +#include "runtime/deoptimization.hpp" #include "runtime/frame.inline.hpp" -#include "runtime/deoptimization.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/vframe.inline.hpp" #include "utilities/sizes.hpp" -#include "aot/aotLoader.hpp" // Resolve and allocate String JRT_BLOCK_ENTRY(void, CompilerRuntime::resolve_string_by_symbol(JavaThread *thread, void* string_result, const char* name)) diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/jvmci/jvmciCodeInstaller.cpp --- a/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/jvmci/jvmciCodeInstaller.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 @@ -39,6 +39,7 @@ #include "oops/oop.inline.hpp" #include "oops/objArrayOop.inline.hpp" #include "oops/typeArrayOop.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/jniHandles.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/jvmci/jvmciCompilerToVM.cpp --- a/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/jvmci/jvmciCompilerToVM.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 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 @@ -40,6 +40,7 @@ #include "runtime/fieldDescriptor.inline.hpp" #include "runtime/flags/jvmFlag.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/jniHandles.inline.hpp" #include "runtime/timerTrace.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/jvmci/jvmciRuntime.cpp --- a/src/hotspot/share/jvmci/jvmciRuntime.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/jvmci/jvmciRuntime.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 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 @@ -42,6 +42,7 @@ #include "oops/objArrayOop.inline.hpp" #include "runtime/biasedLocking.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/jniHandles.inline.hpp" #include "runtime/reflection.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/opto/c2compiler.cpp --- a/src/hotspot/share/opto/c2compiler.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/opto/c2compiler.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -23,6 +23,7 @@ */ #include "precompiled.hpp" +#include "runtime/handles.inline.hpp" #include "jfr/support/jfrIntrinsics.hpp" #include "opto/c2compiler.hpp" #include "opto/compile.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp --- a/src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/jvmtiCodeBlobEvents.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -32,7 +32,6 @@ #include "oops/oop.inline.hpp" #include "prims/jvmtiCodeBlobEvents.hpp" #include "prims/jvmtiExport.hpp" -#include "runtime/handles.hpp" #include "runtime/handles.inline.hpp" #include "runtime/vmThread.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/jvmtiEnv.cpp --- a/src/hotspot/share/prims/jvmtiEnv.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/jvmtiEnv.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -56,6 +56,7 @@ #include "runtime/arguments.hpp" #include "runtime/deoptimization.hpp" #include "runtime/fieldDescriptor.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/jfieldIDWorkaround.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/jvmtiEnvBase.cpp --- a/src/hotspot/share/prims/jvmtiEnvBase.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/jvmtiEnvBase.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -41,6 +41,7 @@ #include "runtime/biasedLocking.hpp" #include "runtime/deoptimization.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/jfieldIDWorkaround.hpp" #include "runtime/jniHandles.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/jvmtiExport.cpp --- a/src/hotspot/share/prims/jvmtiExport.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/jvmtiExport.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -49,7 +49,7 @@ #include "prims/jvmtiThreadState.inline.hpp" #include "runtime/arguments.hpp" #include "runtime/fieldDescriptor.inline.hpp" -#include "runtime/handles.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/jniHandles.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/methodHandles.cpp --- a/src/hotspot/share/prims/methodHandles.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/methodHandles.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -40,6 +40,7 @@ #include "prims/methodHandles.hpp" #include "runtime/compilationPolicy.hpp" #include "runtime/fieldDescriptor.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/jniHandles.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/nativeLookup.cpp --- a/src/hotspot/share/prims/nativeLookup.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/nativeLookup.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 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 @@ -39,6 +39,7 @@ #include "runtime/arguments.hpp" #include "runtime/handles.inline.hpp" #include "runtime/javaCalls.hpp" +#include "runtime/os.inline.hpp" #include "runtime/sharedRuntime.hpp" #include "runtime/signature.hpp" #include "utilities/macros.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/unsafe.cpp --- a/src/hotspot/share/prims/unsafe.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/unsafe.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -38,6 +38,7 @@ #include "prims/unsafe.hpp" #include "runtime/atomic.hpp" #include "runtime/globals.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/jniHandles.inline.hpp" #include "runtime/orderAccess.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/prims/whitebox.cpp --- a/src/hotspot/share/prims/whitebox.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/prims/whitebox.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -59,6 +59,7 @@ #include "runtime/fieldDescriptor.inline.hpp" #include "runtime/flags/jvmFlag.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/handshake.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/deoptimization.cpp --- a/src/hotspot/share/runtime/deoptimization.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/deoptimization.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -47,6 +47,7 @@ #include "runtime/compilationPolicy.hpp" #include "runtime/deoptimization.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/safepointVerifiers.hpp" #include "runtime/sharedRuntime.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/handles.hpp --- a/src/hotspot/share/runtime/handles.hpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/handles.hpp Thu Jan 31 10:31:39 2019 +0100 @@ -31,6 +31,7 @@ class InstanceKlass; class Klass; +class Thread; //------------------------------------------------------------------------------------------------------------------------ // In order to preserve oops during garbage collection, they should be diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/handles.inline.hpp --- a/src/hotspot/share/runtime/handles.inline.hpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/handles.inline.hpp Thu Jan 31 10:31:39 2019 +0100 @@ -26,7 +26,9 @@ #define SHARE_RUNTIME_HANDLES_INLINE_HPP #include "runtime/handles.hpp" -#include "runtime/thread.inline.hpp" +#include "runtime/thread.hpp" +#include "oops/metadata.hpp" +#include "oops/oop.hpp" // these inline functions are in a separate file to break an include cycle // between Thread and Handle diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/java.cpp --- a/src/hotspot/share/runtime/java.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/java.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -58,6 +58,7 @@ #include "runtime/compilationPolicy.hpp" #include "runtime/deoptimization.hpp" #include "runtime/flags/flagSetting.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/init.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/java.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/os.cpp --- a/src/hotspot/share/runtime/os.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/os.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -47,6 +47,7 @@ #include "runtime/arguments.hpp" #include "runtime/atomic.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/java.hpp" #include "runtime/javaCalls.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/safepoint.cpp --- a/src/hotspot/share/runtime/safepoint.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/safepoint.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 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 @@ -48,6 +48,7 @@ #include "runtime/compilationPolicy.hpp" #include "runtime/deoptimization.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/mutexLocker.hpp" #include "runtime/orderAccess.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/semaphore.inline.hpp --- a/src/hotspot/share/runtime/semaphore.inline.hpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/semaphore.inline.hpp Thu Jan 31 10:31:39 2019 +0100 @@ -27,7 +27,7 @@ #include "runtime/interfaceSupport.inline.hpp" #include "runtime/semaphore.hpp" -#include "runtime/thread.inline.hpp" +#include "runtime/thread.hpp" inline void Semaphore::wait_with_safepoint_check(JavaThread* thread) { // Prepare to block and allow safepoints while blocked diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/serviceThread.cpp --- a/src/hotspot/share/runtime/serviceThread.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/serviceThread.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 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 "classfile/stringTable.hpp" #include "classfile/symbolTable.hpp" #include "classfile/systemDictionary.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/javaCalls.hpp" #include "runtime/jniHandles.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/thread.cpp --- a/src/hotspot/share/runtime/thread.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/thread.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -69,6 +69,7 @@ #include "runtime/flags/jvmFlagWriteableList.hpp" #include "runtime/deoptimization.hpp" #include "runtime/frame.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/handshake.hpp" #include "runtime/init.hpp" #include "runtime/interfaceSupport.inline.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/vframe.cpp --- a/src/hotspot/share/runtime/vframe.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/vframe.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 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 @@ -43,6 +43,7 @@ #include "runtime/signature.hpp" #include "runtime/stubRoutines.hpp" #include "runtime/synchronizer.hpp" +#include "runtime/thread.inline.hpp" #include "runtime/vframe.inline.hpp" #include "runtime/vframeArray.hpp" #include "runtime/vframe_hp.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/runtime/vmThread.cpp --- a/src/hotspot/share/runtime/vmThread.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/runtime/vmThread.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -34,6 +34,7 @@ #include "oops/method.hpp" #include "oops/oop.inline.hpp" #include "oops/verifyOopClosure.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/mutexLocker.hpp" #include "runtime/os.hpp" diff -r dfacdb971494 -r 881c5fbeb849 src/hotspot/share/services/lowMemoryDetector.cpp --- a/src/hotspot/share/services/lowMemoryDetector.cpp Thu Jan 31 01:17:41 2019 +0100 +++ b/src/hotspot/share/services/lowMemoryDetector.cpp Thu Jan 31 10:31:39 2019 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 "classfile/vmSymbols.hpp" #include "memory/resourceArea.hpp" #include "oops/oop.inline.hpp" +#include "runtime/handles.inline.hpp" #include "runtime/interfaceSupport.inline.hpp" #include "runtime/java.hpp" #include "runtime/javaCalls.hpp"