src/share/vm/memory/filemap.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/memory/filemap.cpp Sun Feb 8 20:33:02 2015
--- new/src/share/vm/memory/filemap.cpp Sun Feb 8 20:33:01 2015
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 386,396 ****
--- 386,397 ----
// Use remove() to delete the existing file because, on Unix, this will
// allow processes that have it open continued access to the file.
remove(_full_path);
int fd = open(_full_path, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0444);
if (fd < 0) {
! fail_stop("Unable to create shared archive file %s.", _full_path);
! fail_stop("Unable to create shared archive file %s: %s.", _full_path,
+ strerror(errno));
}
_fd = fd;
_file_offset = 0;
_file_open = true;
}
src/share/vm/memory/filemap.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File