Skip to content

Commit

Permalink
Merge pull request #5084 from LinHu2016/CopyforwardMarkCompactHybrid_…
Browse files Browse the repository at this point in the history
…Optimize

use UDATA to replace int to avoid windows compiling issue
  • Loading branch information
amicic authored Mar 13, 2019
2 parents ee1034c + e6a46d3 commit 0296633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtime/gc_vlhgc/CopyForwardDelegate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class MM_CopyForwardDelegate : public MM_BaseNonVirtual
/**
* Set the number of regions, which are need to be reserved for Mark/Compact only in CollectionSet due to short of survivor regions for CopyForward
*/
void setReservedNonEvacuatedRegions(int regionCount)
void setReservedNonEvacuatedRegions(UDATA regionCount)
{
if (NULL != _breadthFirstCopyForwardScheme) {
_breadthFirstCopyForwardScheme->setReservedNonEvacuatedRegions(regionCount);
Expand Down
2 changes: 1 addition & 1 deletion runtime/gc_vlhgc/CopyForwardScheme.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ class MM_CopyForwardScheme : public MM_BaseNonVirtual
return (0 != _regionCountCannotBeEvacuated);
}

void setReservedNonEvacuatedRegions(int regionCount)
void setReservedNonEvacuatedRegions(UDATA regionCount)
{
_regionCountReservedNonEvacuated = regionCount;
}
Expand Down

0 comments on commit 0296633

Please sign in to comment.