Skip to content

Commit dc346d2

Browse files
committed
Merge branch 'master' into 8173361
2 parents 4ce16b1 + e3b9a06 commit dc346d2

File tree

184 files changed

+10538
-2802
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+10538
-2802
lines changed

.github/workflows/freetype.vcxproj

Lines changed: 1733 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/submit.yml

Lines changed: 1617 additions & 0 deletions
Large diffs are not rendered by default.

.hgignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
^dist/
33
nbproject/private/
44
^webrev
5-
^.hgtip
6-
^.bridge2
5+
^.src-rev$
76
.DS_Store
87
# Default ignored files
98
.idea/workspace.xml

.hgtags

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,3 +1028,9 @@ b81aa0cb626746f790f4b6fdcc71d84d00eff136 jdk8u332-b01
10281028
4eff168ecdd924448e2ef4543a632b539e56df6b jdk8u332-b02
10291029
7376b980d6b085d5d9061d212f3ad69d239718e6 jdk8u332-b03
10301030
f58fc9077d2274b2832bc00ff16d112fe99d9ace jdk8u332-b04
1031+
2a92df021686242bb55ecd324b5dee00c45a0a8e jdk8u332-b05
1032+
6d5c4e11830c154190021d6ae134c5f4162ff7cc jdk8u332-b06
1033+
6d526dbc3432fd9f2db19bdcb2f6b5b8799d88f0 jdk8u332-b07
1034+
95b31159fdfd496e521e119aba9ef54acf6b272e jdk8u332-b08
1035+
37aca7715d13acfdc931aab7dbcdd41f9fd4b042 jdk8u332-b09
1036+
37aca7715d13acfdc931aab7dbcdd41f9fd4b042 jdk8u332-ga

common/autoconf/generated-configure.sh

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3884,7 +3884,7 @@ apt_help() {
38843884
pulse)
38853885
PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
38863886
x11)
3887-
PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3887+
PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
38883888
ccache)
38893889
PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
38903890
esac
@@ -4278,7 +4278,7 @@ TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
42784278

42794279

42804280
#
4281-
# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4281+
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
42824282
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
42834283
#
42844284
# This code is free software; you can redistribute it and/or modify it
@@ -4304,7 +4304,7 @@ TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
43044304

43054305
################################################################################
43064306
# The order of these defines the priority by which we try to find them.
4307-
VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4307+
VALID_VS_VERSIONS="2010 2012 2013 2015 2017 2019"
43084308

43094309
VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
43104310
VS_VERSION_INTERNAL_2010=100
@@ -4362,6 +4362,20 @@ VS_SDK_INSTALLDIR_2017=
43624362
VS_VS_PLATFORM_NAME_2017="v141"
43634363
VS_SDK_PLATFORM_NAME_2017=
43644364

4365+
VS_DESCRIPTION_2019="Microsoft Visual Studio 2019"
4366+
VS_VERSION_INTERNAL_2019=141
4367+
VS_MSVCR_2019=vcruntime140.dll
4368+
VS_MSVCP_2019=msvcp140.dll
4369+
VS_ENVVAR_2019="VS160COMNTOOLS"
4370+
VS_USE_UCRT_2019="true"
4371+
VS_VS_INSTALLDIR_2019="Microsoft Visual Studio/2019"
4372+
VS_EDITIONS_2019="BuildTools Community Professional Enterprise"
4373+
VS_SDK_INSTALLDIR_2019=
4374+
VS_VS_PLATFORM_NAME_2019="v142"
4375+
VS_SDK_PLATFORM_NAME_2019=
4376+
VS_SUPPORTED_2019=false
4377+
VS_TOOLSET_SUPPORTED_2019=false
4378+
43654379
################################################################################
43664380

43674381

@@ -4403,7 +4417,7 @@ VS_SDK_PLATFORM_NAME_2017=
44034417
#CUSTOM_AUTOCONF_INCLUDE
44044418

44054419
# Do not change or remove the following line, it is needed for consistency checks:
4406-
DATE_WHEN_GENERATED=1639134107
4420+
DATE_WHEN_GENERATED=1652838310
44074421

44084422
###############################################################################
44094423
#
@@ -25874,7 +25888,7 @@ $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;}
2587425888
VS_BASE="$unix_path"
2587525889
fi
2587625890

25877-
# In VS 2017, the default installation is in a subdir named after the edition.
25891+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
2587825892
# Find the first one present and use that.
2587925893
if test "x$VS_EDITIONS" != x; then
2588025894
for edition in $VS_EDITIONS; do
@@ -25931,7 +25945,7 @@ $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio instal
2593125945
VS_BASE="$unix_path"
2593225946
fi
2593325947

25934-
# In VS 2017, the default installation is in a subdir named after the edition.
25948+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
2593525949
# Find the first one present and use that.
2593625950
if test "x$VS_EDITIONS" != x; then
2593725951
for edition in $VS_EDITIONS; do
@@ -26004,7 +26018,7 @@ $as_echo "$as_me: directory within the Visual Studio installation" >&6;}
2600426018
VS_BASE="$unix_path"
2600526019
fi
2600626020

26007-
# In VS 2017, the default installation is in a subdir named after the edition.
26021+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
2600826022
# Find the first one present and use that.
2600926023
if test "x$VS_EDITIONS" != x; then
2601026024
for edition in $VS_EDITIONS; do
@@ -26063,7 +26077,7 @@ $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio instal
2606326077
VS_BASE="$unix_path"
2606426078
fi
2606526079

26066-
# In VS 2017, the default installation is in a subdir named after the edition.
26080+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
2606726081
# Find the first one present and use that.
2606826082
if test "x$VS_EDITIONS" != x; then
2606926083
for edition in $VS_EDITIONS; do
@@ -26124,7 +26138,7 @@ $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio instal
2612426138
VS_BASE="$unix_path"
2612526139
fi
2612626140

26127-
# In VS 2017, the default installation is in a subdir named after the edition.
26141+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
2612826142
# Find the first one present and use that.
2612926143
if test "x$VS_EDITIONS" != x; then
2613026144
for edition in $VS_EDITIONS; do
@@ -26182,7 +26196,7 @@ $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio instal
2618226196
VS_BASE="$unix_path"
2618326197
fi
2618426198

26185-
# In VS 2017, the default installation is in a subdir named after the edition.
26199+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
2618626200
# Find the first one present and use that.
2618726201
if test "x$VS_EDITIONS" != x; then
2618826202
for edition in $VS_EDITIONS; do
@@ -26239,7 +26253,7 @@ $as_echo "$as_me: Warning: None of $VCVARSFILES were found, Visual Studio instal
2623926253
VS_BASE="$unix_path"
2624026254
fi
2624126255

26242-
# In VS 2017, the default installation is in a subdir named after the edition.
26256+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
2624326257
# Find the first one present and use that.
2624426258
if test "x$VS_EDITIONS" != x; then
2624526259
for edition in $VS_EDITIONS; do
@@ -50104,7 +50118,7 @@ $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\"
5010450118
POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME"
5010550119
fi
5010650120
else
50107-
# Probe: Using well-known location from VS 2017
50121+
# Probe: Using well-known location from VS 2017 and VS 2019
5010850122
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
5010950123
POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`"
5011050124
else
@@ -51507,7 +51521,7 @@ $as_echo "$as_me: The path of CYGWIN_VC_INSTALL_DIR, which resolves as \"$path\"
5150751521
POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME"
5150851522
fi
5150951523
else
51510-
# Probe: Using well-known location from VS 2017
51524+
# Probe: Using well-known location from VS 2017 and VS 2019
5151151525
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
5151251526
POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`"
5151351527
else

common/autoconf/help.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ apt_help() {
112112
pulse)
113113
PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
114114
x11)
115-
PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
115+
PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
116116
ccache)
117117
PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
118118
esac

common/autoconf/toolchain_windows.m4

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
2525

2626
################################################################################
2727
# The order of these defines the priority by which we try to find them.
28-
VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
28+
VALID_VS_VERSIONS="2010 2012 2013 2015 2017 2019"
2929

3030
VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
3131
VS_VERSION_INTERNAL_2010=100
@@ -83,6 +83,20 @@ VS_SDK_INSTALLDIR_2017=
8383
VS_VS_PLATFORM_NAME_2017="v141"
8484
VS_SDK_PLATFORM_NAME_2017=
8585

86+
VS_DESCRIPTION_2019="Microsoft Visual Studio 2019"
87+
VS_VERSION_INTERNAL_2019=141
88+
VS_MSVCR_2019=vcruntime140.dll
89+
VS_MSVCP_2019=msvcp140.dll
90+
VS_ENVVAR_2019="VS160COMNTOOLS"
91+
VS_USE_UCRT_2019="true"
92+
VS_VS_INSTALLDIR_2019="Microsoft Visual Studio/2019"
93+
VS_EDITIONS_2019="BuildTools Community Professional Enterprise"
94+
VS_SDK_INSTALLDIR_2019=
95+
VS_VS_PLATFORM_NAME_2019="v142"
96+
VS_SDK_PLATFORM_NAME_2019=
97+
VS_SUPPORTED_2019=false
98+
VS_TOOLSET_SUPPORTED_2019=false
99+
86100
################################################################################
87101

88102
AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
@@ -93,7 +107,7 @@ AC_DEFUN([TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT],
93107
METHOD="$3"
94108
95109
BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(VS_BASE)
96-
# In VS 2017, the default installation is in a subdir named after the edition.
110+
# In VS 2017 and VS 2019, the default installation is in a subdir named after the edition.
97111
# Find the first one present and use that.
98112
if test "x$VS_EDITIONS" != x; then
99113
for edition in $VS_EDITIONS; do
@@ -520,7 +534,7 @@ AC_DEFUN([TOOLCHAIN_SETUP_MSVC_DLL],
520534
POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME"
521535
fi
522536
else
523-
# Probe: Using well-known location from VS 2017
537+
# Probe: Using well-known location from VS 2017 and VS 2019
524538
if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
525539
POSSIBLE_MSVC_DLL="`ls $CYGWIN_VC_INSTALL_DIR/Redist/MSVC/*/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME`"
526540
else

corba/.hgignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
^build/
22
^dist/
33
/nbproject/private/
4-
^.hgtip
54
.DS_Store

hotspot/.hgignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
^src/share/tools/IdealGraphVisualizer/[a-zA-Z0-9]*/build/
66
^src/share/tools/IdealGraphVisualizer/build/
77
^src/share/tools/IdealGraphVisualizer/dist/
8-
^.hgtip
98
.DS_Store

hotspot/agent/src/os/linux/ps_core.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -802,13 +802,15 @@ static bool read_interp_segments(struct ps_prochandle* ph) {
802802
}
803803

804804
// process segments of a a.out
805-
static bool read_exec_segments(struct ps_prochandle* ph, ELF_EHDR* exec_ehdr) {
805+
// returns base address of executable.
806+
static uintptr_t read_exec_segments(struct ps_prochandle* ph, ELF_EHDR* exec_ehdr) {
806807
int i = 0;
807808
ELF_PHDR* phbuf = NULL;
808809
ELF_PHDR* exec_php = NULL;
810+
uintptr_t result = 0L;
809811

810812
if ((phbuf = read_program_header_table(ph->core->exec_fd, exec_ehdr)) == NULL)
811-
return false;
813+
return 0L;
812814

813815
for (exec_php = phbuf, i = 0; i < exec_ehdr->e_phnum; i++) {
814816
switch (exec_php->p_type) {
@@ -839,10 +841,10 @@ static bool read_exec_segments(struct ps_prochandle* ph, ELF_EHDR* exec_ehdr) {
839841
// from PT_DYNAMIC we want to read address of first link_map addr
840842
case PT_DYNAMIC: {
841843
if (exec_ehdr->e_type == ET_EXEC) {
844+
result = exec_php->p_vaddr;
842845
ph->core->dynamic_addr = exec_php->p_vaddr;
843846
} else { // ET_DYN
844-
// dynamic_addr has entry point of executable.
845-
// Thus we should substract it.
847+
result = ph->core->dynamic_addr - exec_ehdr->e_entry;
846848
ph->core->dynamic_addr += exec_php->p_vaddr - exec_ehdr->e_entry;
847849
}
848850
print_debug("address of _DYNAMIC is 0x%lx\n", ph->core->dynamic_addr);
@@ -854,10 +856,10 @@ static bool read_exec_segments(struct ps_prochandle* ph, ELF_EHDR* exec_ehdr) {
854856
} // for
855857

856858
free(phbuf);
857-
return true;
859+
return result;
858860
err:
859861
free(phbuf);
860-
return false;
862+
return 0L;
861863
}
862864

863865

@@ -1108,13 +1110,12 @@ struct ps_prochandle* Pgrab_core(const char* exec_file, const char* core_file) {
11081110
}
11091111

11101112
// process exec file segments
1111-
if (read_exec_segments(ph, &exec_ehdr) != true) {
1113+
uintptr_t exec_base_addr = read_exec_segments(ph, &exec_ehdr);
1114+
if (exec_base_addr == 0L) {
11121115
goto err;
11131116
}
1114-
1115-
// exec file is also treated like a shared object for symbol search
1116-
if (add_lib_info_fd(ph, exec_file, ph->core->exec_fd,
1117-
(uintptr_t)0 + find_base_address(ph->core->exec_fd, &exec_ehdr)) == NULL) {
1117+
print_debug("exec_base_addr = 0x%lx\n", exec_base_addr);
1118+
if (add_lib_info_fd(ph, exec_file, ph->core->exec_fd, exec_base_addr) == NULL) {
11181119
goto err;
11191120
}
11201121

0 commit comments

Comments
 (0)