mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-java/openjdk: don't use __attribute__((flatten)) (excessive mem use with LTO)
Newer JDKs have a workaround: b42f146edb/make/hotspot/lib/JvmOverrideFiles.gmk (L40)
Closes: https://bugs.gentoo.org/960257
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
13
dev-java/openjdk/files/openjdk-17.0.16_p8-lto-memory.patch
Normal file
13
dev-java/openjdk/files/openjdk-17.0.16_p8-lto-memory.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
https://bugs.gentoo.org/960257
|
||||
https://gcc.gnu.org/PR77472
|
||||
--- a/src/hotspot/share/utilities/globalDefinitions_gcc.hpp
|
||||
+++ b/src/hotspot/share/utilities/globalDefinitions_gcc.hpp
|
||||
@@ -170,7 +170,7 @@ inline int wcslen(const jchar* x) { return wcslen((const wchar_t*)x); }
|
||||
// Inlining support
|
||||
#define NOINLINE __attribute__ ((noinline))
|
||||
#define ALWAYSINLINE inline __attribute__ ((always_inline))
|
||||
-#define ATTRIBUTE_FLATTEN __attribute__ ((flatten))
|
||||
+#define ATTRIBUTE_FLATTEN
|
||||
|
||||
// Alignment
|
||||
//
|
||||
@@ -114,7 +114,10 @@ DEPEND="
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/openjdk-17.0.16_p8-fixBuild_failure_with_glibc-2.42.patch" )
|
||||
PATCHES=(
|
||||
"${FILESDIR}/openjdk-17.0.16_p8-fixBuild_failure_with_glibc-2.42.patch"
|
||||
"${FILESDIR}/openjdk-17.0.16_p8-lto-memory.patch"
|
||||
)
|
||||
|
||||
# The space required to build varies wildly depending on USE flags,
|
||||
# ranging from 2GB to 16GB. This function is certainly not exact but
|
||||
|
||||
Reference in New Issue
Block a user