hotspot/src/os/bsd/vm/perfMemory_bsd.cpp
changeset 18069 e6d4971c8650
parent 16674 3847a5ea1846
child 18078 10417cf9967d
equal deleted inserted replaced
18025:b7bcf7497f93 18069:e6d4971c8650
     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.
    58   if (mapAddress == NULL) {
    58   if (mapAddress == NULL) {
    59     return NULL;
    59     return NULL;
    60   }
    60   }
    61 
    61 
    62   // commit memory
    62   // commit memory
    63   if (!os::commit_memory(mapAddress, size)) {
    63   if (!os::commit_memory(mapAddress, size, !ExecMem)) {
    64     if (PrintMiscellaneous && Verbose) {
    64     if (PrintMiscellaneous && Verbose) {
    65       warning("Could not commit PerfData memory\n");
    65       warning("Could not commit PerfData memory\n");
    66     }
    66     }
    67     os::release_memory(mapAddress, size);
    67     os::release_memory(mapAddress, size);
    68     return NULL;
    68     return NULL;