Skip to content

Commit 202d7af

Browse files
author
J. Duke
committed
Merge
2 parents 279b6fa + 53510f4 commit 202d7af

File tree

178 files changed

+8706
-2510
lines changed

Some content is hidden

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

178 files changed

+8706
-2510
lines changed

.hgtags-top-repo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,4 @@ be1218f792a450dfb5d4b1f82616b9d95a6a732e jdk-9+133
380380
82b94cb5f342319d2cda77f9fa59703ad7fde576 jdk-9+135
381381
3ec350f5f32af249b59620d7e37b54bdcd77b233 jdk-9+136
382382
d7f519b004254b19e384131d9f0d0e40e31a0fd3 jdk-9+137
383+
67c4388142bdf58aec8fefa4475faaa8a5d7380c jdk-9+138

common/autoconf/buildjdk-spec.gmk.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ include @SPEC@
3333
CC := @BUILD_CC@
3434
CXX := @BUILD_CXX@
3535
LD := @BUILD_LD@
36+
LDCXX := @BUILD_LDCXX@
3637
AS := @BUILD_AS@
3738
NM := @BUILD_NM@
3839
AR := @BUILD_AR@

common/autoconf/generated-configure.sh

Lines changed: 6 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,6 @@ XMKMF
687687
MSVCP_DLL
688688
MSVCR_DLL
689689
LIBCXX
690-
STATIC_CXX_SETTING
691690
FIXPATH_DETACH_FLAG
692691
FIXPATH
693692
BUILD_GTEST
@@ -5092,7 +5091,7 @@ VS_SDK_PLATFORM_NAME_2013=
50925091
#CUSTOM_AUTOCONF_INCLUDE
50935092

50945093
# Do not change or remove the following line, it is needed for consistency checks:
5095-
DATE_WHEN_GENERATED=1474894604
5094+
DATE_WHEN_GENERATED=1475218974
50965095

50975096
###############################################################################
50985097
#
@@ -53087,59 +53086,18 @@ fi
5308753086

5308853087

5308953088
if test "x$OPENJDK_TARGET_OS" = xlinux; then
53090-
# Test if -lstdc++ works.
53091-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
53092-
$as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
53093-
ac_ext=cpp
53094-
ac_cpp='$CXXCPP $CPPFLAGS'
53095-
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53096-
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53097-
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
53098-
53099-
OLD_CXXFLAGS="$CXXFLAGS"
53100-
CXXFLAGS="$CXXFLAGS -lstdc++"
53101-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
53102-
/* end confdefs.h. */
53103-
53104-
int
53105-
main ()
53106-
{
53107-
return 0;
53108-
;
53109-
return 0;
53110-
}
53111-
_ACEOF
53112-
if ac_fn_cxx_try_link "$LINENO"; then :
53113-
has_dynamic_libstdcxx=yes
53114-
else
53115-
has_dynamic_libstdcxx=no
53116-
fi
53117-
rm -f core conftest.err conftest.$ac_objext \
53118-
conftest$ac_exeext conftest.$ac_ext
53119-
CXXFLAGS="$OLD_CXXFLAGS"
53120-
ac_ext=cpp
53121-
ac_cpp='$CXXCPP $CPPFLAGS'
53122-
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
53123-
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
53124-
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
53125-
53126-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
53127-
$as_echo "$has_dynamic_libstdcxx" >&6; }
53128-
5312953089
# Test if stdc++ can be linked statically.
5313053090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
5313153091
$as_echo_n "checking if static link of stdc++ is possible... " >&6; }
53132-
STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
53092+
STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc"
5313353093
ac_ext=cpp
5313453094
ac_cpp='$CXXCPP $CPPFLAGS'
5313553095
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313653096
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5313753097
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5313853098

5313953099
OLD_LIBS="$LIBS"
53140-
OLD_CXX="$CXX"
5314153100
LIBS="$STATIC_STDCXX_FLAGS"
53142-
CXX="$CC"
5314353101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314453102
/* end confdefs.h. */
5314553103

@@ -53159,7 +53117,6 @@ fi
5315953117
rm -f core conftest.err conftest.$ac_objext \
5316053118
conftest$ac_exeext conftest.$ac_ext
5316153119
LIBS="$OLD_LIBS"
53162-
CXX="$OLD_CXX"
5316353120
ac_ext=cpp
5316453121
ac_cpp='$CXXCPP $CPPFLAGS'
5316553122
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -53169,59 +53126,34 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5316953126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
5317053127
$as_echo "$has_static_libstdcxx" >&6; }
5317153128

53172-
if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then
53173-
as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5
53174-
fi
53175-
5317653129
if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
5317753130
as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5
5317853131
fi
5317953132

53180-
if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then
53181-
as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5
53182-
fi
53183-
5318453133
# If dynamic was requested, it's available since it would fail above otherwise.
5318553134
# If dynamic wasn't requested, go with static unless it isn't available.
5318653135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
5318753136
$as_echo_n "checking how to link with libstdc++... " >&6; }
53188-
if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then
53189-
LIBCXX="$LIBCXX -lstdc++"
53190-
# To help comparisons with old build, put stdc++ first in JVM_LIBS
53191-
JVM_LIBS="-lstdc++ $JVM_LIBS"
53192-
# Ideally, we should test stdc++ for the BUILD toolchain separately. For now
53193-
# just use the same setting as for the TARGET toolchain.
53194-
OPENJDK_BUILD_JVM_LIBS="-lstdc++ $OPENJDK_BUILD_JVM_LIBS"
53195-
LDCXX="$CXX"
53196-
STATIC_CXX_SETTING="STATIC_CXX=false"
53137+
if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \
53138+
|| [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then
5319753139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
5319853140
$as_echo "dynamic" >&6; }
5319953141
else
5320053142
LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
53201-
JVM_LDFLAGS="$JVM_LDFLAGS -static-libgcc"
53202-
# To help comparisons with old build, put stdc++ first in JVM_LIBS
53203-
JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $JVM_LIBS"
53143+
JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
5320453144
# Ideally, we should test stdc++ for the BUILD toolchain separately. For now
5320553145
# just use the same setting as for the TARGET toolchain.
53206-
OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -static-libgcc"
53207-
OPENJDK_BUILD_JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $OPENJDK_BUILD_JVM_LIBS"
53208-
LDCXX="$CC"
53209-
STATIC_CXX_SETTING="STATIC_CXX=true"
53146+
OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
5321053147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
5321153148
$as_echo "static" >&6; }
5321253149
fi
5321353150
fi
5321453151

53215-
5321653152
# libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
5321753153
if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then
5321853154
LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"
5321953155
fi
5322053156

53221-
# TODO better (platform agnostic) test
53222-
if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then
53223-
LIBCXX="-lstdc++"
53224-
fi
5322553157

5322653158

5322753159
# Setup Windows runtime dlls

common/autoconf/lib-std.m4

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -45,84 +45,44 @@ AC_DEFUN_ONCE([LIB_SETUP_STD_LIBS],
4545
)
4646
4747
if test "x$OPENJDK_TARGET_OS" = xlinux; then
48-
# Test if -lstdc++ works.
49-
AC_MSG_CHECKING([if dynamic link of stdc++ is possible])
50-
AC_LANG_PUSH(C++)
51-
OLD_CXXFLAGS="$CXXFLAGS"
52-
CXXFLAGS="$CXXFLAGS -lstdc++"
53-
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [return 0;])],
54-
[has_dynamic_libstdcxx=yes],
55-
[has_dynamic_libstdcxx=no])
56-
CXXFLAGS="$OLD_CXXFLAGS"
57-
AC_LANG_POP(C++)
58-
AC_MSG_RESULT([$has_dynamic_libstdcxx])
59-
6048
# Test if stdc++ can be linked statically.
6149
AC_MSG_CHECKING([if static link of stdc++ is possible])
62-
STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
50+
STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc"
6351
AC_LANG_PUSH(C++)
6452
OLD_LIBS="$LIBS"
65-
OLD_CXX="$CXX"
6653
LIBS="$STATIC_STDCXX_FLAGS"
67-
CXX="$CC"
6854
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [return 0;])],
6955
[has_static_libstdcxx=yes],
7056
[has_static_libstdcxx=no])
7157
LIBS="$OLD_LIBS"
72-
CXX="$OLD_CXX"
7358
AC_LANG_POP(C++)
7459
AC_MSG_RESULT([$has_static_libstdcxx])
7560
76-
if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then
77-
AC_MSG_ERROR([Cannot link to stdc++, neither dynamically nor statically!])
78-
fi
79-
8061
if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then
8162
AC_MSG_ERROR([Static linking of libstdc++ was not possible!])
8263
fi
8364
84-
if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then
85-
AC_MSG_ERROR([Dynamic linking of libstdc++ was not possible!])
86-
fi
87-
8865
# If dynamic was requested, it's available since it would fail above otherwise.
8966
# If dynamic wasn't requested, go with static unless it isn't available.
9067
AC_MSG_CHECKING([how to link with libstdc++])
91-
if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then
92-
LIBCXX="$LIBCXX -lstdc++"
93-
# To help comparisons with old build, put stdc++ first in JVM_LIBS
94-
JVM_LIBS="-lstdc++ $JVM_LIBS"
95-
# Ideally, we should test stdc++ for the BUILD toolchain separately. For now
96-
# just use the same setting as for the TARGET toolchain.
97-
OPENJDK_BUILD_JVM_LIBS="-lstdc++ $OPENJDK_BUILD_JVM_LIBS"
98-
LDCXX="$CXX"
99-
STATIC_CXX_SETTING="STATIC_CXX=false"
68+
if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno \
69+
|| HOTSPOT_CHECK_JVM_VARIANT(zeroshark); then
10070
AC_MSG_RESULT([dynamic])
10171
else
10272
LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
103-
JVM_LDFLAGS="$JVM_LDFLAGS -static-libgcc"
104-
# To help comparisons with old build, put stdc++ first in JVM_LIBS
105-
JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $JVM_LIBS"
73+
JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
10674
# Ideally, we should test stdc++ for the BUILD toolchain separately. For now
10775
# just use the same setting as for the TARGET toolchain.
108-
OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -static-libgcc"
109-
OPENJDK_BUILD_JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $OPENJDK_BUILD_JVM_LIBS"
110-
LDCXX="$CC"
111-
STATIC_CXX_SETTING="STATIC_CXX=true"
76+
OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS"
11277
AC_MSG_RESULT([static])
11378
fi
11479
fi
115-
AC_SUBST(STATIC_CXX_SETTING)
11680
11781
# libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so)
11882
if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then
11983
LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1"
12084
fi
12185
122-
# TODO better (platform agnostic) test
123-
if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then
124-
LIBCXX="-lstdc++"
125-
fi
12686
AC_SUBST(LIBCXX)
12787
12888
# Setup Windows runtime dlls

corba/.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,4 @@ f7e1d5337c2e550fe553df7a3886bbed80292ecd jdk-9+131
380380
094d0db606db976045f594dba47d4593b715cc81 jdk-9+135
381381
aa053a3faf266c12b4fd5272da431a3e08e4a3e3 jdk-9+136
382382
258cf18fa7fc59359b874f8743b7168dc48baf73 jdk-9+137
383+
27bb44be32076861a0951bcefb07a1d92509a4b6 jdk-9+138

corba/make/gensrc/Gensrc-java.corba.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $(eval $(call SetupJavaCompilation,BUILD_TOOLS_CORBA, \
3838
SRC := $(CORBA_TOPDIR)/make/src/classes, \
3939
BIN := $(BUILDTOOLS_OUTPUTDIR)/corba_tools_classes))
4040

41-
TOOL_LOGUTIL_CMD := $(JAVA) -cp $(BUILDTOOLS_OUTPUTDIR)/corba_tools_classes \
41+
TOOL_LOGUTIL_CMD := $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/corba_tools_classes \
4242
build.tools.logutil.MC
4343

4444
$(eval $(call SetupJavaCompilation,BUILD_IDLJ, \
@@ -50,7 +50,7 @@ $(eval $(call SetupJavaCompilation,BUILD_IDLJ, \
5050
EXCLUDE_FILES := ResourceBundleUtil.java module-info.java))
5151

5252
# Force the language to english for predictable source code generation.
53-
TOOL_IDLJ_CMD := $(JAVA) -cp $(BUILDTOOLS_OUTPUTDIR)/idlj_classes \
53+
TOOL_IDLJ_CMD := $(JAVA_SMALL) -cp $(BUILDTOOLS_OUTPUTDIR)/idlj_classes \
5454
-Duser.language=en com.sun.tools.corba.se.idl.toJavaPortable.Compile
5555

5656
################################################################################

hotspot/.hgtags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,3 +540,4 @@ b8b694c6b4d2ab0939aed7adaf0eec1ac321a085 jdk-9+134
540540
3b1c4562953db47e36b237a500f368d5c9746d47 jdk-9+135
541541
a20da289f646ee44440695b81abc0548330e4ca7 jdk-9+136
542542
dfcbf839e299e7e2bba1da69bdb347617ea4c7e8 jdk-9+137
543+
fc0956308c7a586267c5dd35dff74f773aa9c3eb jdk-9+138

hotspot/make/lib/CompileGtest.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ endif
5555
# Disabling switch warning for clang because of test source.
5656

5757
$(eval $(call SetupNativeCompilation, BUILD_GTEST_LIBJVM, \
58-
TOOLCHAIN := $(JVM_TOOLCHAIN), \
58+
TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
5959
LIBRARY := jvm, \
6060
OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
6161
OBJECT_DIR := $(JVM_OUTPUTDIR)/gtest/objs, \
@@ -95,7 +95,7 @@ TARGETS += $(BUILD_GTEST_LIBJVM)
9595
################################################################################
9696

9797
$(eval $(call SetupNativeCompilation, BUILD_GTEST_LAUNCHER, \
98-
TOOLCHAIN := $(JVM_TOOLCHAIN), \
98+
TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
9999
PROGRAM := gtestLauncher, \
100100
OUTPUT_DIR := $(JVM_OUTPUTDIR)/gtest, \
101101
EXTRA_FILES := $(GTEST_LAUNCHER_SRC), \

hotspot/make/lib/CompileJvm.gmk

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@ ifneq ($(filter $(OPENJDK_TARGET_OS), linux macosx windows), )
143143
JVM_PRECOMPILED_HEADER := $(HOTSPOT_TOPDIR)/src/share/vm/precompiled/precompiled.hpp
144144
endif
145145

146-
ifneq ($(filter $(OPENJDK_TARGET_OS), macosx aix solaris), )
147-
# On macosx, aix and solaris we have to link with the C++ compiler
148-
JVM_TOOLCHAIN := TOOLCHAIN_LINK_CXX
149-
else
150-
JVM_TOOLCHAIN := TOOLCHAIN_DEFAULT
151-
endif
152-
153146
ifeq ($(OPENJDK_TARGET_CPU), x86)
154147
JVM_EXCLUDE_PATTERNS += x86_64
155148
else ifeq ($(OPENJDK_TARGET_CPU), x86_64)
@@ -194,7 +187,7 @@ JVM_OPTIMIZATION ?= HIGHEST_JVM
194187
# Now set up the actual compilation of the main hotspot native library
195188

196189
$(eval $(call SetupNativeCompilation, BUILD_LIBJVM, \
197-
TOOLCHAIN := $(JVM_TOOLCHAIN), \
190+
TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
198191
LIBRARY := jvm, \
199192
OUTPUT_DIR := $(JVM_OUTPUTDIR), \
200193
SRC := $(JVM_SRC_DIRS), \

hotspot/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ private static synchronized void initialize(TypeDataBase db) throws WrongTypeExc
6868
Type type = db.lookupType("InstanceKlass");
6969
arrayKlasses = new MetadataField(type.getAddressField("_array_klasses"), 0);
7070
methods = type.getAddressField("_methods");
71+
defaultMethods = type.getAddressField("_default_methods");
7172
methodOrdering = type.getAddressField("_method_ordering");
7273
localInterfaces = type.getAddressField("_local_interfaces");
7374
transitiveInterfaces = type.getAddressField("_transitive_interfaces");
@@ -128,6 +129,7 @@ public InstanceKlass(Address addr) {
128129

129130
private static MetadataField arrayKlasses;
130131
private static AddressField methods;
132+
private static AddressField defaultMethods;
131133
private static AddressField methodOrdering;
132134
private static AddressField localInterfaces;
133135
private static AddressField transitiveInterfaces;
@@ -335,6 +337,20 @@ public int getFieldOffset(int index) {
335337
// Accessors for declared fields
336338
public Klass getArrayKlasses() { return (Klass) arrayKlasses.getValue(this); }
337339
public MethodArray getMethods() { return new MethodArray(methods.getValue(getAddress())); }
340+
341+
public MethodArray getDefaultMethods() {
342+
if (defaultMethods != null) {
343+
Address addr = defaultMethods.getValue(getAddress());
344+
if ((addr != null) && (addr.getAddressAt(0) != null)) {
345+
return new MethodArray(addr);
346+
} else {
347+
return null;
348+
}
349+
} else {
350+
return null;
351+
}
352+
}
353+
338354
public KlassArray getLocalInterfaces() { return new KlassArray(localInterfaces.getValue(getAddress())); }
339355
public KlassArray getTransitiveInterfaces() { return new KlassArray(transitiveInterfaces.getValue(getAddress())); }
340356
public int getJavaFieldsCount() { return (int) javaFieldsCount.getValue(this); }

hotspot/src/share/vm/classfile/classLoader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ ClassFileStream* ClassLoader::search_module_entries(const GrowableArray<ModuleCl
13581358
if (!Universe::is_module_initialized() &&
13591359
!ModuleEntryTable::javabase_defined() &&
13601360
mod_entry == NULL) {
1361-
mod_entry = ModuleEntryTable::javabase_module();
1361+
mod_entry = ModuleEntryTable::javabase_moduleEntry();
13621362
}
13631363

13641364
// The module must be a named module
@@ -1708,7 +1708,7 @@ void ClassLoader::create_javabase() {
17081708
if (jb_module == NULL) {
17091709
vm_exit_during_initialization("Unable to create ModuleEntry for java.base");
17101710
}
1711-
ModuleEntryTable::set_javabase_module(jb_module);
1711+
ModuleEntryTable::set_javabase_moduleEntry(jb_module);
17121712
}
17131713
}
17141714

0 commit comments

Comments
 (0)