equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2013, 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. |
60 if (mapAddress == NULL) { |
60 if (mapAddress == NULL) { |
61 return NULL; |
61 return NULL; |
62 } |
62 } |
63 |
63 |
64 // commit memory |
64 // commit memory |
65 if (!os::commit_memory(mapAddress, size)) { |
65 if (!os::commit_memory(mapAddress, size, !ExecMem)) { |
66 if (PrintMiscellaneous && Verbose) { |
66 if (PrintMiscellaneous && Verbose) { |
67 warning("Could not commit PerfData memory\n"); |
67 warning("Could not commit PerfData memory\n"); |
68 } |
68 } |
69 os::release_memory(mapAddress, size); |
69 os::release_memory(mapAddress, size); |
70 return NULL; |
70 return NULL; |