13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/symbolTable.hpp"
28 #include "classfile/altHashing.hpp"
29 #include "memory/filemap.hpp"
30 #include "runtime/arguments.hpp"
31 #include "runtime/java.hpp"
32 #include "runtime/os.hpp"
33 #include "services/memTracker.hpp"
34 #include "utilities/defaultStream.hpp"
35
36 # include <sys/stat.h>
37 # include <errno.h>
38
39 #ifndef O_BINARY // if defined (Win32) use binary files.
40 #define O_BINARY 0 // otherwise do nothing.
41 #endif
42
43 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
44
45 extern address JVM_FunctionAtStart();
46 extern address JVM_FunctionAtEnd();
47
48 // Complain and stop. All error conditions occurring during the writing of
49 // an archive file should stop the process. Unrecoverable errors during
50 // the reading of the archive file should stop the process.
51
52 static void fail(const char *msg, va_list ap) {
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #include "precompiled.hpp"
26 #include "classfile/classLoader.hpp"
27 #include "classfile/symbolTable.hpp"
28 #include "classfile/altHashing.hpp"
29 #include "memory/filemap.hpp"
30 #include "runtime/arguments.hpp"
31 #include "runtime/java.hpp"
32 #include "runtime/os.hpp"
33 #include "runtime/vm_version.hpp"
34 #include "services/memTracker.hpp"
35 #include "utilities/defaultStream.hpp"
36
37 # include <sys/stat.h>
38 # include <errno.h>
39
40 #ifndef O_BINARY // if defined (Win32) use binary files.
41 #define O_BINARY 0 // otherwise do nothing.
42 #endif
43
44 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
45
46 extern address JVM_FunctionAtStart();
47 extern address JVM_FunctionAtEnd();
48
49 // Complain and stop. All error conditions occurring during the writing of
50 // an archive file should stop the process. Unrecoverable errors during
51 // the reading of the archive file should stop the process.
52
53 static void fail(const char *msg, va_list ap) {
|