equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "precompiled.hpp" |
25 #include "precompiled.hpp" |
26 #include "memory/filemap.hpp" |
26 #include "memory/metaspaceShared.hpp" |
27 #include "runtime/arguments.hpp" |
27 #include "runtime/arguments.hpp" |
28 #include "runtime/os.hpp" |
28 #include "runtime/os.hpp" |
29 #include "runtime/thread.hpp" |
29 #include "runtime/thread.hpp" |
30 #include "utilities/vmError.hpp" |
30 #include "utilities/vmError.hpp" |
31 |
31 |
56 const EXCEPTION_RECORD* const er = (const EXCEPTION_RECORD*)siginfo; |
56 const EXCEPTION_RECORD* const er = (const EXCEPTION_RECORD*)siginfo; |
57 if (er->ExceptionCode == EXCEPTION_IN_PAGE_ERROR && |
57 if (er->ExceptionCode == EXCEPTION_IN_PAGE_ERROR && |
58 er->NumberParameters >= 2) { |
58 er->NumberParameters >= 2) { |
59 const void* const fault_addr = (const void*) er->ExceptionInformation[1]; |
59 const void* const fault_addr = (const void*) er->ExceptionInformation[1]; |
60 if (fault_addr != NULL) { |
60 if (fault_addr != NULL) { |
61 FileMapInfo* const mapinfo = FileMapInfo::current_info(); |
61 if (MetaspaceShared::is_in_shared_metaspace(fault_addr)) { |
62 if (mapinfo->is_in_shared_space(fault_addr)) { |
|
63 st->print("Error accessing class data sharing archive. " |
62 st->print("Error accessing class data sharing archive. " |
64 "Mapped file inaccessible during execution, possible disk/network problem."); |
63 "Mapped file inaccessible during execution, possible disk/network problem."); |
65 } |
64 } |
66 } |
65 } |
67 } |
66 } |