mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8202641: Replace OOP_SINCE_SAVE_MARKS with templates
Reviewed-by: eosterlund, sjohanss
This commit is contained in:
parent
2e1bd03bad
commit
1dd85fe2f4
31 changed files with 297 additions and 276 deletions
|
@ -1195,12 +1195,8 @@ class ConcurrentMarkSweepGeneration: public CardGeneration {
|
|||
virtual void safe_object_iterate(ObjectClosure* cl);
|
||||
virtual void object_iterate(ObjectClosure* cl);
|
||||
|
||||
// Need to declare the full complement of closures, whether we'll
|
||||
// override them or not, or get message from the compiler:
|
||||
// oop_since_save_marks_iterate_nv hides virtual function...
|
||||
#define CMS_SINCE_SAVE_MARKS_DECL(OopClosureType, nv_suffix) \
|
||||
void oop_since_save_marks_iterate##nv_suffix(OopClosureType* cl);
|
||||
ALL_SINCE_SAVE_MARKS_CLOSURES(CMS_SINCE_SAVE_MARKS_DECL)
|
||||
template <typename OopClosureType>
|
||||
void oop_since_save_marks_iterate(OopClosureType* cl);
|
||||
|
||||
// Smart allocation XXX -- move to CFLSpace?
|
||||
void setNearLargestChunk();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue