提交 7f4a8a49 编写于 作者: T tonyp

6855115: G1: Fix for 6850869 is incorrect

Summary: Missed updating two variable names when improving the code for 6850869.
Reviewed-by: iveresov, jmasa, ysr
上级 0b1ce92c
...@@ -1256,8 +1256,8 @@ public: ...@@ -1256,8 +1256,8 @@ public:
// the humongous regions (in case this changes in the future). // the humongous regions (in case this changes in the future).
G1CollectedHeap* g1h = G1CollectedHeap::heap(); G1CollectedHeap* g1h = G1CollectedHeap::heap();
size_t end_index = index + 1; size_t end_index = index + 1;
while (index < g1h->n_regions()) { while (end_index < g1h->n_regions()) {
HeapRegion* chr = g1h->region_at(index); HeapRegion* chr = g1h->region_at(end_index);
if (!chr->continuesHumongous()) { if (!chr->continuesHumongous()) {
break; break;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册