hotspot/src/os/windows/vm/perfMemory_windows.cpp
changeset 18069 e6d4971c8650
parent 16674 3847a5ea1846
child 18086 f44cf213a775
--- a/hotspot/src/os/windows/vm/perfMemory_windows.cpp	Mon Jun 10 11:30:51 2013 +0200
+++ b/hotspot/src/os/windows/vm/perfMemory_windows.cpp	Thu Jun 13 11:16:38 2013 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -58,7 +58,7 @@
   }
 
   // commit memory
-  if (!os::commit_memory(mapAddress, size)) {
+  if (!os::commit_memory(mapAddress, size, !ExecMem)) {
     if (PrintMiscellaneous && Verbose) {
       warning("Could not commit PerfData memory\n");
     }