mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7122222: GC log is limited to 2G for 32-bit
Enable large file support for generated 32-bit ostream.o on Linux and Solaris (as only the two need this) by setting -D_FILE_OFFSET_BITS=64 in compilation Reviewed-by: tbell, mgerdin, dcubed
This commit is contained in:
parent
1dc7a25eac
commit
1ddf2378db
3 changed files with 11 additions and 3 deletions
|
@ -107,6 +107,10 @@ CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
|
||||||
# File specific flags
|
# File specific flags
|
||||||
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
||||||
|
|
||||||
|
# Large File Support
|
||||||
|
ifneq ($(LP64), 1)
|
||||||
|
CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64
|
||||||
|
endif # ifneq ($(LP64), 1)
|
||||||
|
|
||||||
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
||||||
CFLAGS += $(CFLAGS_WARN/BYFILE)
|
CFLAGS += $(CFLAGS_WARN/BYFILE)
|
||||||
|
|
|
@ -95,6 +95,10 @@ CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
|
||||||
# File specific flags
|
# File specific flags
|
||||||
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
CXXFLAGS += $(CXXFLAGS/BYFILE)
|
||||||
|
|
||||||
|
# Large File Support
|
||||||
|
ifneq ($(LP64), 1)
|
||||||
|
CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64
|
||||||
|
endif # ifneq ($(LP64), 1)
|
||||||
|
|
||||||
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
# CFLAGS_WARN holds compiler options to suppress/enable warnings.
|
||||||
CFLAGS += $(CFLAGS_WARN)
|
CFLAGS += $(CFLAGS_WARN)
|
||||||
|
|
|
@ -89,7 +89,7 @@ inline int os::readdir_buf_size(const char *path) {
|
||||||
|
|
||||||
inline struct dirent* os::readdir(DIR* dirp, dirent* dbuf) {
|
inline struct dirent* os::readdir(DIR* dirp, dirent* dbuf) {
|
||||||
assert(dirp != NULL, "just checking");
|
assert(dirp != NULL, "just checking");
|
||||||
#if defined(_LP64) || defined(_GNU_SOURCE)
|
#if defined(_LP64) || defined(_GNU_SOURCE) || _FILE_OFFSET_BITS==64
|
||||||
dirent* p;
|
dirent* p;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
|
@ -98,9 +98,9 @@ inline struct dirent* os::readdir(DIR* dirp, dirent* dbuf) {
|
||||||
return NULL;
|
return NULL;
|
||||||
} else
|
} else
|
||||||
return p;
|
return p;
|
||||||
#else // defined(_LP64) || defined(_GNU_SOURCE)
|
#else // defined(_LP64) || defined(_GNU_SOURCE) || _FILE_OFFSET_BITS==64
|
||||||
return ::readdir_r(dirp, dbuf);
|
return ::readdir_r(dirp, dbuf);
|
||||||
#endif // defined(_LP64) || defined(_GNU_SOURCE)
|
#endif // defined(_LP64) || defined(_GNU_SOURCE) || _FILE_OFFSET_BITS==64
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int os::closedir(DIR *dirp) {
|
inline int os::closedir(DIR *dirp) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue