sharedPathsMiscInfo.cpp (7344:1d29b13e8a51) | sharedPathsMiscInfo.cpp (9575:98a36f531ec2) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or --- 51 unchanged lines hidden (view full) --- 62 memcpy(ptr, _cur_ptr, size); 63 _cur_ptr += size; 64 return true; 65 } 66 return false; 67} 68 69bool SharedPathsMiscInfo::fail(const char* msg, const char* name) { | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or --- 51 unchanged lines hidden (view full) --- 62 memcpy(ptr, _cur_ptr, size); 63 _cur_ptr += size; 64 return true; 65 } 66 return false; 67} 68 69bool SharedPathsMiscInfo::fail(const char* msg, const char* name) { |
70 ClassLoader::trace_class_path(msg, name); | 70 ClassLoader::trace_class_path(tty, msg, name); |
71 MetaspaceShared::set_archive_loading_failed(); 72 return false; 73} 74 75bool SharedPathsMiscInfo::check() { 76 // The whole buffer must be 0 terminated so that we can use strlen and strcmp 77 // without fear. 78 _end_ptr -= sizeof(jint); --- 76 unchanged lines hidden --- | 71 MetaspaceShared::set_archive_loading_failed(); 72 return false; 73} 74 75bool SharedPathsMiscInfo::check() { 76 // The whole buffer must be 0 terminated so that we can use strlen and strcmp 77 // without fear. 78 _end_ptr -= sizeof(jint); --- 76 unchanged lines hidden --- |