@@ -111,11 +111,11 @@ if (committed_size() < bytes) { return false; } char* const base_addr = committed_high_addr() - bytes; - bool result = special() || os::uncommit_memory(base_addr, bytes); + bool result = special() || os::uncommit_memory(base_addr, bytes, !ExecMem); if (result) { _committed_high_addr -= bytes; } return result;