equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * Copyright 2012, 2014 SAP AG. All rights reserved. |
3 * Copyright 2012, 2015 SAP AG. All rights reserved. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 * |
5 * |
6 * This code is free software; you can redistribute it and/or modify it |
6 * This code is free software; you can redistribute it and/or modify it |
7 * under the terms of the GNU General Public License version 2 only, as |
7 * under the terms of the GNU General Public License version 2 only, as |
8 * published by the Free Software Foundation. |
8 * published by the Free Software Foundation. |
170 FLAG_SET_DEFAULT(UseSHA1Intrinsics, false); |
170 FLAG_SET_DEFAULT(UseSHA1Intrinsics, false); |
171 FLAG_SET_DEFAULT(UseSHA256Intrinsics, false); |
171 FLAG_SET_DEFAULT(UseSHA256Intrinsics, false); |
172 FLAG_SET_DEFAULT(UseSHA512Intrinsics, false); |
172 FLAG_SET_DEFAULT(UseSHA512Intrinsics, false); |
173 } |
173 } |
174 |
174 |
|
175 // This machine does not allow unaligned memory accesses |
|
176 if (UseUnalignedAccesses) { |
|
177 if (!FLAG_IS_DEFAULT(UseUnalignedAccesses)) |
|
178 warning("Unaligned memory access is not available on this CPU"); |
|
179 FLAG_SET_DEFAULT(UseUnalignedAccesses, false); |
|
180 } |
175 } |
181 } |
176 |
182 |
177 void VM_Version::print_features() { |
183 void VM_Version::print_features() { |
178 tty->print_cr("Version: %s cache_line_size = %d", cpu_features(), (int) get_cache_line_size()); |
184 tty->print_cr("Version: %s cache_line_size = %d", cpu_features(), (int) get_cache_line_size()); |
179 } |
185 } |