< prev index next >

src/hotspot/share/gc/shared/cardTable.cpp

Print this page

        

@@ -252,11 +252,12 @@
       MemRegion const uncommit_region =
         committed_unique_to_self(ind, MemRegion(new_end_aligned,
                                                 cur_committed.end()));
       if (!uncommit_region.is_empty()) {
         if (!os::uncommit_memory((char*)uncommit_region.start(),
-                                 uncommit_region.byte_size())) {
+                                 uncommit_region.byte_size(),
+                                 !ExecMem)) {
           assert(false, "Card table contraction failed");
           // The call failed so don't change the end of the
           // committed region.  This is better than taking the
           // VM down.
           new_end_aligned = _committed[ind].end();
< prev index next >