Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b27054a
CMake: Refactor platform specific config
Feb 27, 2020
4b45584
Merge branch 'master' of https://github.com/eclipse/openj9 into dynam…
XuechunHou Mar 26, 2020
ccc1012
Change build condition for ProxyFieldAccess tests
renfeiw Mar 31, 2020
63f9c15
Remove unneeded semicolons, and minor formatting
babsingh Mar 31, 2020
ddba27f
Remove shutDownHookWrapper
babsingh Apr 1, 2020
4ee5277
Check for Q as prefix for value type classes
hzongaro Feb 12, 2020
c34da9e
Prototype ILGen for defaultvalue bytecode
hzongaro Feb 12, 2020
9cf5cf2
Fix debug build break in JITServer code
mpirvu Apr 1, 2020
78627dd
Merge pull request #9078 from mpirvu/fixBuildBreak
ymanton Apr 2, 2020
4454a11
AArch64: Implement TR_UnloadedClassPicSite::compensate
Apr 1, 2020
99df7bb
Merge pull request #9070 from babsingh/remove_shutDownHookWrapper
DanHeidinga Apr 2, 2020
a84eb99
Update the UTF8 string length in verifyQualifiedName
Apr 2, 2020
6661740
Merge pull request #9069 from Akira1Saitoh/aarch64UPicSite
knn-k Apr 2, 2020
fc28779
Update to OpenSSL 1.1.1f
pshipton Apr 2, 2020
4f1f79c
Merge pull request #8807 from dnakamura/platform
pshipton Apr 2, 2020
06fa4ce
Merge pull request #9030 from hzongaro/defaultvalue-ilgen
andrewcraik Apr 2, 2020
f44b609
Merge pull request #9086 from pshipton/opensslf
keithc-ca Apr 2, 2020
0a27b55
Merge pull request #9060 from renfeiw/tkg5
llxia Apr 2, 2020
69ba50d
Add FlattenedArrayObjectScanner
youngar Mar 6, 2020
58ed0b2
Merge pull request #9092 from ChengJin01/bcv_utf8string_qualified_nam…
DanHeidinga Apr 2, 2020
987ab17
Merge pull request #9062 from babsingh/remove_extra_semicolon
pshipton Apr 2, 2020
25ecf55
Merge branch 'master' of https://github.com/eclipse/openj9 into dynam…
XuechunHou Apr 2, 2020
9ef399f
Merge pull request #9074 from youngar/vt-flattenedscanner-2
dmitripivkine Apr 2, 2020
15ca068
made error messages consistent
XuechunHou Apr 2, 2020
87d9b75
Merge branch 'master' of https://github.com/eclipse/openj9 into addre…
XuechunHou Apr 2, 2020
f814554
resolved conflicts
XuechunHou Apr 3, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildenv/jenkins/variables/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jitserver:
# OpenSSL
#========================================#
openssl:
extra_getsource_options: '--openssl-version=1.1.1e'
extra_getsource_options: '--openssl-version=1.1.1f'
extra_configure_options: '--with-openssl=fetched'
#========================================#
# OpenSSL Bundling
Expand Down
4 changes: 2 additions & 2 deletions runtime/bcutil/jimageintf.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2015, 2017 IBM Corp. and others
* Copyright (c) 2015, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -320,7 +320,7 @@ jimageFindResource(J9JImageIntf *jimageIntf, UDATA handle, const char *moduleNam

if (jimageIntf->libJImageHandle) {
JImageFile *jimage = (JImageFile *)handle;
JImageLocationRef *locationRef = (JImageLocationRef *)j9mem_allocate_memory(sizeof(JImageLocationRef), J9MEM_CATEGORY_CLASSES);;
JImageLocationRef *locationRef = (JImageLocationRef *)j9mem_allocate_memory(sizeof(JImageLocationRef), J9MEM_CATEGORY_CLASSES);

if (NULL != locationRef) {
*locationRef = libJImageFindResource(jimage, moduleName, JIMAGE_VERSION_NUMBER, name, (jlong *)size);
Expand Down
4 changes: 2 additions & 2 deletions runtime/bcutil/test/dyntest/misc_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2001, 2017 IBM Corp. and others
* Copyright (c) 2001, 2020 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -95,7 +95,7 @@ testGetNextStackMapFrame(J9PortLibrary *portLib, const char *classFileName)
UDATA *frame = NULL;
UDATA *prevFrame = NULL;
U_16 stackFrameIndex = 0;
U_16 stackFrameCount = GET_BE_U16((((U_8*)stackMap)+sizeof(U_32)));;
U_16 stackFrameCount = GET_BE_U16((((U_8 *)stackMap) + sizeof(U_32)));
/* get the first stack frame */
frame = getNextStackMapFrame(stackMap, frame);
while(stackFrameIndex < stackFrameCount) {
Expand Down
1 change: 1 addition & 0 deletions runtime/cmake/caches/aix_ppc-64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ set(J9VM_ENV_SHARED_LIBS_CALLEE_GLOBAL_TABLE_SETUP OFF CACHE BOOL "")
set(J9VM_ENV_SHARED_LIBS_USE_GLOBAL_TABLE ON CACHE BOOL "")

set(OMR_GC_TLH_PREFETCH_FTA OFF CACHE BOOL "")
set(J9VM_JIT_RUNTIME_INSTRUMENTATION ON CACHE BOOL "")
set(J9VM_PORT_RUNTIME_INSTRUMENTATION ON CACHE BOOL "")
set(J9VM_MODULE_CODEGEN_PPC ON CACHE BOOL "")
set(J9VM_GC_IDLE_HEAP_MANAGER OFF CACHE BOOL "")
Expand Down
1 change: 1 addition & 0 deletions runtime/cmake/caches/linux_ppc-64_le_gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ set(J9VM_ENV_USE_GCC ON CACHE BOOL "")

set(OMR_GC_IDLE_HEAP_MANAGER OFF CACHE BOOL "")
set(OMR_GC_TLH_PREFETCH_FTA OFF CACHE BOOL "")
set(J9VM_JIT_RUNTIME_INSTRUMENTATION ON CACHE BOOL "")
set(J9VM_PORT_RUNTIME_INSTRUMENTATION ON CACHE BOOL "")
set(J9VM_MODULE_CODEGEN_PPC ON CACHE BOOL "")
set(J9VM_MODULE_THRTRACE ON CACHE BOOL "")
Expand Down
55 changes: 8 additions & 47 deletions runtime/cmake/platform.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
################################################################################
# Copyright (c) 2017, 2019 IBM Corp. and others
# Copyright (c) 2017, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
Expand All @@ -20,57 +20,18 @@
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
################################################################################

# Get OMR's platform config
include(OmrPlatform)
# Note: we need to inject WIN32 et al, as OMR no longer uses them
if(OMR_OS_WINDOWS)
list(APPEND OMR_PLATFORM_DEFINITIONS
-DWIN32
-D_WIN32
)
if(OMR_ENV_DATA64)
list(APPEND OMR_PLATFORM_DEFINITIONS
-DWIN64
-D_WIN64
)
endif()
endif()
omr_platform_global_setup()

if(OMR_TOOLCONFIG STREQUAL "gnu")
set(CMAKE_CXX_FLAGS " -g -fno-rtti -fno-exceptions ${CMAKE_CXX_FLAGS}")
set(CMAKE_C_FLAGS "-g ${CMAKE_C_FLAGS}")

# Raise an error if a shared library has any unresolved symbols.
# This flag isn't supported on OSX, but it has this behaviour by default
if(NOT OMR_OS_OSX)
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-z,defs ${CMAKE_SHARED_LINKER_FLAGS}")
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -O3 -fno-strict-aliasing")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -O3 -fno-strict-aliasing -fno-exceptions -fno-rtti -fno-threadsafe-statics")
elseif(OMR_TOOLCONFIG STREQUAL "xlc")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -qalias=noansi")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -qalias=noansi -qnortti -qnoeh -qsuppress=1540-1087:1540-1088:1540-1090")
set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -qpic=large")
endif()
# Add our own platform specific config if we have any
include("${CMAKE_CURRENT_LIST_DIR}/platform/os/${OMR_HOST_OS}.cmake" OPTIONAL)
include("${CMAKE_CURRENT_LIST_DIR}/platform/arch/${OMR_HOST_ARCH}.cmake" OPTIONAL)
include("${CMAKE_CURRENT_LIST_DIR}/platform/toolcfg/${OMR_TOOLCONFIG}.cmake" OPTIONAL)

if(OMR_ARCH_POWER)
#TODO do based on toolchain stuff
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_definitions(-DOMR_ENV_GCC)
endif()
#TODO this is a hack
set(J9VM_JIT_RUNTIME_INSTRUMENTATION ON CACHE BOOL "")
set(J9VM_PORT_RUNTIME_INSTRUMENTATION ON CACHE BOOL "")
endif()

if(OMR_OS_AIX)
# Override cmake default of ".a" for shared libs on aix
set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
endif()
# Apply the combined platform config
omr_platform_global_setup()

if(NOT OMR_OS_OSX)
add_definitions(-DIPv6_FUNCTION_SUPPORT)
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
25 changes: 25 additions & 0 deletions runtime/cmake/platform/arch/power.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
################################################################################
# Copyright (c) 2020, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
################################################################################

if(OMR_TOOLCONFIG STREQUAL "GNU")
add_definitions(-DOMR_ENV_GCC)
endif()
24 changes: 24 additions & 0 deletions runtime/cmake/platform/os/aix.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
################################################################################
# Copyright (c) 2020, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
################################################################################

# Override cmake default of ".a" for shared libs on aix
set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
34 changes: 34 additions & 0 deletions runtime/cmake/platform/os/win.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
################################################################################
# Copyright (c) 2020, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
################################################################################

# Note: we need to inject WIN32 et al, as OMR no longer uses them

list(APPEND OMR_PLATFORM_DEFINITIONS
-DWIN32
-D_WIN32
)
if(OMR_ENV_DATA64)
list(APPEND OMR_PLATFORM_DEFINITIONS
-DWIN64
-D_WIN64
)
endif()
39 changes: 39 additions & 0 deletions runtime/cmake/platform/toolcfg/gnu.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
################################################################################
# Copyright (c) 2020, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
################################################################################

list(APPEND OMR_PLATFORM_COMPILE_OPTIONS -O3 -g)

# Add these
list(APPEND OMR_PLATFORM_CXX_COMPILE_OPTIONS -fno-threadsafe-statics)

# OMR_PLATFORM_CXX_COMPILE_OPTIONS gets applied to the jit (which needs exceptions),
# so we put these in the CMAKE_CXX_FLAGS instead
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti")

# Raise an error if a shared library has any unresolved symbols.
# This flag isn't supported on OSX, but it has this behaviour by default
if(NOT OMR_OS_OSX)
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-z,defs ${CMAKE_SHARED_LINKER_FLAGS}")
endif()

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1")
31 changes: 31 additions & 0 deletions runtime/cmake/platform/toolcfg/xlc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
################################################################################
# Copyright (c) 2020, 2020 IBM Corp. and others
#
# This program and the accompanying materials are made available under
# the terms of the Eclipse Public License 2.0 which accompanies this
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
# or the Apache License, Version 2.0 which accompanies this distribution and
# is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# This Source Code may also be made available under the following
# Secondary Licenses when the conditions for such availability set
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
# General Public License, version 2 with the GNU Classpath
# Exception [1] and GNU General Public License, version 2 with the
# OpenJDK Assembly Exception [2].
#
# [1] https://www.gnu.org/software/classpath/license.html
# [2] http://openjdk.java.net/legal/assembly-exception.html
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
################################################################################

list(APPEND OMR_PLATFORM_COMPILE_OPTIONS -O3)

list(APPEND OMR_PLATFORM_CXX_COMPILE_OPTIONS -qsuppress=1540-1087:1540-1088:1540-1090)

# OMR_PLATFORM_CXX_COMPILE_OPTIONS gets applied to the jit (which needs exceptions),
# so we put these in the CMAKE_CXX_FLAGS instead
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qnortti -qnoeh")

set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -qpic=large")
2 changes: 1 addition & 1 deletion runtime/compiler/aarch64/codegen/CallSnippet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void
TR_Debug::print(TR::FILE *pOutFile, TR::ARM64CallSnippet * snippet)
{
TR::Node *callNode = snippet->getNode();
TR::SymbolReference *glueRef = _cg->getSymRef(snippet->getHelper());;
TR::SymbolReference *glueRef = _cg->getSymRef(snippet->getHelper());
TR::SymbolReference *methodSymRef = callNode->getSymbolReference();
TR::MethodSymbol *methodSymbol = methodSymRef->getSymbol()->castToMethodSymbol();

Expand Down
2 changes: 1 addition & 1 deletion runtime/compiler/aarch64/runtime/ARM64RelocationTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void
TR_ARM64RelocationTarget::storeCallTarget(uintptr_t callTarget, uint8_t *reloLocation)
{
// reloLocation points at the start of the call offset, so just store the uint8_t * at reloLocation
storePointer((uint8_t *)callTarget, reloLocation);;
storePointer((uint8_t *)callTarget, reloLocation);
}

uint32_t
Expand Down
Loading