src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7089790_full Sdiff src/share/vm/gc_implementation/shared

src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp

Print this page
rev 2694 : imported patch headers_only


  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "gc_implementation/shared/mutableNUMASpace.hpp"
  28 #include "gc_implementation/shared/spaceDecorator.hpp"
  29 #include "memory/sharedHeap.hpp"
  30 #include "oops/oop.inline.hpp"
  31 #ifdef TARGET_OS_FAMILY_linux
  32 # include "thread_linux.inline.hpp"
  33 #endif
  34 #ifdef TARGET_OS_FAMILY_solaris
  35 # include "thread_solaris.inline.hpp"
  36 #endif
  37 #ifdef TARGET_OS_FAMILY_windows
  38 # include "thread_windows.inline.hpp"
  39 #endif



  40 
  41 
  42 MutableNUMASpace::MutableNUMASpace(size_t alignment) : MutableSpace(alignment) {
  43   _lgrp_spaces = new (ResourceObj::C_HEAP) GrowableArray<LGRPSpace*>(0, true);
  44   _page_size = os::vm_page_size();
  45   _adaptation_cycles = 0;
  46   _samples_count = 0;
  47   update_layout(true);
  48 }
  49 
  50 MutableNUMASpace::~MutableNUMASpace() {
  51   for (int i = 0; i < lgrp_spaces()->length(); i++) {
  52     delete lgrp_spaces()->at(i);
  53   }
  54   delete lgrp_spaces();
  55 }
  56 
  57 #ifndef PRODUCT
  58 void MutableNUMASpace::mangle_unused_area() {
  59   // This method should do nothing.




  20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21  * or visit www.oracle.com if you need additional information or have any
  22  * questions.
  23  *
  24  */
  25 
  26 #include "precompiled.hpp"
  27 #include "gc_implementation/shared/mutableNUMASpace.hpp"
  28 #include "gc_implementation/shared/spaceDecorator.hpp"
  29 #include "memory/sharedHeap.hpp"
  30 #include "oops/oop.inline.hpp"
  31 #ifdef TARGET_OS_FAMILY_linux
  32 # include "thread_linux.inline.hpp"
  33 #endif
  34 #ifdef TARGET_OS_FAMILY_solaris
  35 # include "thread_solaris.inline.hpp"
  36 #endif
  37 #ifdef TARGET_OS_FAMILY_windows
  38 # include "thread_windows.inline.hpp"
  39 #endif
  40 #ifdef TARGET_OS_FAMILY_bsd
  41 # include "thread_bsd.inline.hpp"
  42 #endif
  43 
  44 
  45 MutableNUMASpace::MutableNUMASpace(size_t alignment) : MutableSpace(alignment) {
  46   _lgrp_spaces = new (ResourceObj::C_HEAP) GrowableArray<LGRPSpace*>(0, true);
  47   _page_size = os::vm_page_size();
  48   _adaptation_cycles = 0;
  49   _samples_count = 0;
  50   update_layout(true);
  51 }
  52 
  53 MutableNUMASpace::~MutableNUMASpace() {
  54   for (int i = 0; i < lgrp_spaces()->length(); i++) {
  55     delete lgrp_spaces()->at(i);
  56   }
  57   delete lgrp_spaces();
  58 }
  59 
  60 #ifndef PRODUCT
  61 void MutableNUMASpace::mangle_unused_area() {
  62   // This method should do nothing.


src/share/vm/gc_implementation/shared/mutableNUMASpace.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File