From 53155971877e91ea211590cfde60e0c840ff8cdb Mon Sep 17 00:00:00 2001 From: stuefe Date: Wed, 28 Feb 2018 05:31:04 +0000 Subject: [PATCH] 8078628: linux-zero does not build without precompiled header Summary: add missing includes Reviewed-by: coleenp, stefank, sgehwolf, dholmes --- src/cpu/zero/vm/entry_zero.hpp | 4 +++- src/cpu/zero/vm/nativeInst_zero.cpp | 4 +++- src/share/vm/code/codeCache.cpp | 3 ++- src/share/vm/interpreter/cppInterpreterGenerator.hpp | 5 ++++- src/share/vm/interpreter/interpreter.hpp | 4 +--- src/share/vm/runtime/frame.hpp | 4 +--- src/share/vm/runtime/frame.inline.hpp | 4 +--- src/share/vm/runtime/thread.hpp | 2 -- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/cpu/zero/vm/entry_zero.hpp b/src/cpu/zero/vm/entry_zero.hpp index 20f5d33df..73987f061 100644 --- a/src/cpu/zero/vm/entry_zero.hpp +++ b/src/cpu/zero/vm/entry_zero.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright 2008, 2009, 2010 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -26,6 +26,8 @@ #ifndef CPU_ZERO_VM_ENTRY_ZERO_HPP #define CPU_ZERO_VM_ENTRY_ZERO_HPP +#include "interpreter/cppInterpreter.hpp" + class ZeroEntry { public: ZeroEntry() { diff --git a/src/cpu/zero/vm/nativeInst_zero.cpp b/src/cpu/zero/vm/nativeInst_zero.cpp index 98a2121a8..bd9a7039b 100644 --- a/src/cpu/zero/vm/nativeInst_zero.cpp +++ b/src/cpu/zero/vm/nativeInst_zero.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * Copyright 2008 Red Hat, Inc. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * @@ -25,6 +25,8 @@ #include "precompiled.hpp" #include "assembler_zero.inline.hpp" +#include "entry_zero.hpp" +#include "interpreter/cppInterpreter.hpp" #include "memory/resourceArea.hpp" #include "nativeInst_zero.hpp" #include "oops/oop.inline.hpp" diff --git a/src/share/vm/code/codeCache.cpp b/src/share/vm/code/codeCache.cpp index c9059d73c..9e5b7e98c 100644 --- a/src/share/vm/code/codeCache.cpp +++ b/src/share/vm/code/codeCache.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, 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 "oops/oop.inline.hpp" #include "runtime/handles.inline.hpp" #include "runtime/arguments.hpp" +#include "runtime/deoptimization.hpp" #include "runtime/icache.hpp" #include "runtime/java.hpp" #include "runtime/mutexLocker.hpp" diff --git a/src/share/vm/interpreter/cppInterpreterGenerator.hpp b/src/share/vm/interpreter/cppInterpreterGenerator.hpp index c27805e3e..b753027f6 100644 --- a/src/share/vm/interpreter/cppInterpreterGenerator.hpp +++ b/src/share/vm/interpreter/cppInterpreterGenerator.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, 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 @@ -29,6 +29,9 @@ // of the template interpreter generator. #ifdef CC_INTERP +#ifdef TARGET_ARCH_zero +# include "entry_zero.hpp" +#endif class CppInterpreterGenerator: public AbstractInterpreterGenerator { protected: diff --git a/src/share/vm/interpreter/interpreter.hpp b/src/share/vm/interpreter/interpreter.hpp index d3792f847..1f18ce17f 100644 --- a/src/share/vm/interpreter/interpreter.hpp +++ b/src/share/vm/interpreter/interpreter.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, 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 @@ -28,11 +28,9 @@ #include "code/stubs.hpp" #include "interpreter/cppInterpreter.hpp" #include "interpreter/templateInterpreter.hpp" -#ifdef ZERO #ifdef TARGET_ARCH_zero # include "entry_zero.hpp" #endif -#endif // This file contains the platform-independent parts // of the interpreter and the interpreter generator. diff --git a/src/share/vm/runtime/frame.hpp b/src/share/vm/runtime/frame.hpp index c83808b6a..255596e90 100644 --- a/src/share/vm/runtime/frame.hpp +++ b/src/share/vm/runtime/frame.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, 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 @@ -45,11 +45,9 @@ # include "adfiles/adGlobals_ppc_64.hpp" #endif #endif // COMPILER2 -#ifdef ZERO #ifdef TARGET_ARCH_zero # include "stack_zero.hpp" #endif -#endif typedef class BytecodeInterpreter* interpreterState; diff --git a/src/share/vm/runtime/frame.inline.hpp b/src/share/vm/runtime/frame.inline.hpp index ce725956d..37d13f845 100644 --- a/src/share/vm/runtime/frame.inline.hpp +++ b/src/share/vm/runtime/frame.inline.hpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, 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 @@ -46,14 +46,12 @@ #ifdef TARGET_ARCH_ppc # include "jniTypes_ppc.hpp" #endif -#ifdef ZERO #ifdef TARGET_ARCH_zero # include "entryFrame_zero.hpp" # include "fakeStubFrame_zero.hpp" # include "interpreterFrame_zero.hpp" # include "sharkFrame_zero.hpp" #endif -#endif // This file holds platform-independent bodies of inline functions for frames. diff --git a/src/share/vm/runtime/thread.hpp b/src/share/vm/runtime/thread.hpp index 1117c872b..c20321184 100644 --- a/src/share/vm/runtime/thread.hpp +++ b/src/share/vm/runtime/thread.hpp @@ -51,11 +51,9 @@ #include "gc_implementation/g1/dirtyCardQueue.hpp" #include "gc_implementation/g1/satbQueue.hpp" #endif // INCLUDE_ALL_GCS -#ifdef ZERO #ifdef TARGET_ARCH_zero # include "stack_zero.hpp" #endif -#endif class ThreadSafepointState; class ThreadProfiler; -- GitLab