Skip to content

Commit 884b9ff

Browse files
committed
8256485: Zero VM build broken after JDK-8254231
Reviewed-by: shade, redestad
1 parent 84429cd commit 884b9ff

8 files changed

+135
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
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
7+
* published by the Free Software Foundation.
8+
*
9+
* This code is distributed in the hope that it will be useful, but WITHOUT
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+
#include "precompiled.hpp"
25+
#include "prims/foreign_globals.hpp"
26+
#include "utilities/debug.hpp"
27+
28+
const ABIDescriptor ForeignGlobals::parse_abi_descriptor_impl(jobject jabi) const {
29+
ShouldNotCallThis();
30+
return {};
31+
}
32+
33+
const BufferLayout ForeignGlobals::parse_buffer_layout_impl(jobject jlayout) const {
34+
ShouldNotCallThis();
35+
return {};
36+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
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
7+
* published by the Free Software Foundation.
8+
*
9+
* This code is distributed in the hope that it will be useful, but WITHOUT
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 CPU_ZERO_VM_FOREIGN_GLOBALS_ZERO_HPP
25+
#define CPU_ZERO_VM_FOREIGN_GLOBALS_ZERO_HPP
26+
27+
class BufferLayout {};
28+
class ABIDescriptor {};
29+
30+
#endif // CPU_ZERO_VM_FOREIGN_GLOBALS_ZERO_HPP

src/hotspot/cpu/zero/methodHandles_zero.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ address MethodHandles::generate_method_handle_interpreter_entry(MacroAssembler*
208208
switch (iid) {
209209
case vmIntrinsics::_invokeGeneric:
210210
case vmIntrinsics::_compiledLambdaForm:
211+
case vmIntrinsics::_linkToNative:
211212
// Perhaps surprisingly, the symbolic references visible to Java are not directly used.
212213
// They are linked to Java-generated adapters via MethodHandleNatives.linkMethod.
213214
// They all allow an appendix argument.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
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
7+
* published by the Free Software Foundation.
8+
*
9+
* This code is distributed in the hope that it will be useful, but WITHOUT
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+
#include "precompiled.hpp"
25+
#include "prims/universalNativeInvoker.hpp"
26+
27+
address ProgrammableInvoker::generate_adapter(jobject jabi, jobject jlayout) {
28+
ShouldNotCallThis();
29+
return nullptr;
30+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
*
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
7+
* published by the Free Software Foundation.
8+
*
9+
* This code is distributed in the hope that it will be useful, but WITHOUT
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+
#include "precompiled.hpp"
25+
#include "prims/universalUpcallHandler.hpp"
26+
27+
address ProgrammableUpcallHandler::generate_upcall_stub(jobject rec, jobject jabi, jobject jlayout) {
28+
ShouldNotCallThis();
29+
return nullptr;
30+
}

src/hotspot/cpu/zero/vmreg_zero.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,8 @@ FloatRegister VMRegImpl::as_FloatRegister() {
6161
assert(is_FloatRegister(), "must be" );
6262
return ::as_FloatRegister(value() - ConcreteRegisterImpl::max_gpr);
6363
}
64+
65+
VMReg VMRegImpl::vmStorageToVMReg(int type, int index) {
66+
ShouldNotCallThis();
67+
return VMRegImpl::Bad();
68+
}

src/hotspot/share/prims/foreign_globals.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#ifndef SHARE_PRIMS_FOREIGN_GLOBALS
2525
#define SHARE_PRIMS_FOREIGN_GLOBALS
2626

27+
#include "oops/oopsHierarchy.hpp"
28+
#include "utilities/growableArray.hpp"
2729
#include "utilities/macros.hpp"
2830

2931
#include CPU_HEADER(foreign_globals)

src/hotspot/share/prims/universalUpcallHandler.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#ifndef SHARE_VM_PRIMS_UNIVERSALUPCALLHANDLER_HPP
2525
#define SHARE_VM_PRIMS_UNIVERSALUPCALLHANDLER_HPP
2626

27+
#include "asm/codeBuffer.hpp"
2728
#include "prims/foreign_globals.hpp"
2829

2930
class ProgrammableUpcallHandler {

0 commit comments

Comments
 (0)