Skip to content

Commit 6381945

Browse files
committed
Add message for assert
Not all C++ stds implement it w/o.
1 parent bb34c15 commit 6381945

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hotspot/os/linux/attachListener_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ int LinuxAttachListener::init() {
184184
char initial_path[UNIX_PATH_MAX]; // socket file during setup
185185
int listener; // listener socket (file descriptor)
186186

187-
static_assert(sizeof(off_t) == 8);
187+
static_assert(sizeof(off_t) == 8, "Expected Large File Support in this file");
188188

189189
// register function to cleanup
190190
if (!_atexit_registered) {

src/hotspot/os/linux/os_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2772,7 +2772,7 @@ void os::jvm_path(char *buf, jint buflen) {
27722772
void linux_wrap_code(char* base, size_t size) {
27732773
static volatile jint cnt = 0;
27742774

2775-
static_assert(sizeof(off_t) == 8);
2775+
static_assert(sizeof(off_t) == 8, "Expected Large File Support in this file");
27762776

27772777
if (!UseOprofile) {
27782778
return;

src/hotspot/os/posix/os_posix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static char* reserve_mmapped_memory(size_t bytes, char* requested_addr) {
287287
}
288288

289289
static int util_posix_fallocate(int fd, off_t offset, off_t len) {
290-
static_assert(sizeof(off_t) == 8);
290+
static_assert(sizeof(off_t) == 8, "Expected Large File Support in this file");
291291
#ifdef __APPLE__
292292
fstore_t store = { F_ALLOCATECONTIG, F_PEOFPOSMODE, 0, len };
293293
// First we try to get a continuous chunk of disk space

0 commit comments

Comments
 (0)