Skip to content

Commit

Permalink
Fix DDR Compilation of "gcddrstructs.ic"
Browse files Browse the repository at this point in the history
Move init of `_maximumDefaultNumberOfGCThreads` filed to ctor init list.

Config Delegate's field `_maximumDefaultNumberOfGCThreads` const
decleration was removed in.
eclipse-openj9#16666. This resulted in
DDR compile errors:
```
  [exec] "gc_glue_java/ConfigurationDelegate.hpp", line 67: error: data
member
     [exec]           initializer is not allowed
     [exec]    uintptr_t _maximumDefaultNumberOfGCThreads = 64;
```

Signed-off-by: Salman Rana <salman.rana@ibm.com>
  • Loading branch information
RSalman committed Feb 10, 2023
1 parent 3d8126a commit 558445a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions runtime/gc_glue_java/ConfigurationDelegate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MM_ConfigurationDelegate
* Member data and types
*/
private:
uintptr_t _maximumDefaultNumberOfGCThreads = 64;
uintptr_t _maximumDefaultNumberOfGCThreads;
const MM_GCPolicy _gcPolicy;

protected:
Expand Down Expand Up @@ -364,8 +364,9 @@ class MM_ConfigurationDelegate
/**
* Constructor.
*/
MM_ConfigurationDelegate(MM_GCPolicy gcPolicy)
: _gcPolicy(gcPolicy)
MM_ConfigurationDelegate(MM_GCPolicy gcPolicy) :
_maximumDefaultNumberOfGCThreads(64)
, _gcPolicy(gcPolicy)
{}
};

Expand Down

0 comments on commit 558445a

Please sign in to comment.