changeset 51891:0d2e45b25c3d

8207056: Epsilon GC to support object pinning Summary: Epsilon GC to use object pinning to avoid expensive GCLocker Reviewed-by: shade, rkennke
author zgu
date Wed, 11 Jul 2018 13:55:38 -0400
parents fc24da4898f1
children 4630bb315ec0
files src/hotspot/share/gc/epsilon/epsilonHeap.hpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/share/gc/epsilon/epsilonHeap.hpp	Thu Jul 19 14:25:42 2018 -0700
+++ b/src/hotspot/share/gc/epsilon/epsilonHeap.hpp	Wed Jul 11 13:55:38 2018 -0400
@@ -121,6 +121,11 @@
     safe_object_iterate(cl);
   }
 
+  // Object pinning support: every object is implicitly pinned
+  virtual bool supports_object_pinning() const           { return true; }
+  virtual oop pin_object(JavaThread* thread, oop obj)    { return obj; }
+  virtual void unpin_object(JavaThread* thread, oop obj) { }
+
   // No support for block parsing.
   virtual HeapWord* block_start(const void* addr) const { return NULL;  }
   virtual size_t block_size(const HeapWord* addr) const { return 0;     }