Skip to content

Commit

Permalink
Merge pull request #3549 from rwy0717/scavenger-delegate
Browse files Browse the repository at this point in the history
Add getDelegate to Scavenger
  • Loading branch information
charliegracie authored Feb 6, 2019
2 parents 5c60287 + bd70b6f commit c1b7da2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gc/base/standard/Scavenger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ class MM_Scavenger : public MM_Collector
static MM_Scavenger *newInstance(MM_EnvironmentStandard *env, MM_HeapRegionManager *regionManager);
virtual void kill(MM_EnvironmentBase *env);

#if defined (OMR_GC_SCAVENGER_DELEGATE)
MM_ScavengerDelegate* getDelegate() { return &_delegate; }
#endif /* OMR_GC_SCAVENGER_DELEGATE */

/* Read Barrier Verifier specific methods */
#if defined(OMR_ENV_DATA64) && !defined(OMR_GC_COMPRESSED_POINTERS)
virtual void scavenger_poisonSlots(MM_EnvironmentBase *env);
Expand Down

0 comments on commit c1b7da2

Please sign in to comment.