src/hotspot/share/gc/g1/heapRegion.inline.hpp
changeset 49664 9a04cc89dde0
parent 47885 5caa1d5f74c1
child 51494 1906adbef2dc
--- a/src/hotspot/share/gc/g1/heapRegion.inline.hpp	Wed Mar 28 15:30:43 2018 +0200
+++ b/src/hotspot/share/gc/g1/heapRegion.inline.hpp	Wed Apr 04 11:21:14 2018 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -247,6 +247,7 @@
 
 inline void HeapRegion::note_end_of_marking() {
   _prev_top_at_mark_start = _next_top_at_mark_start;
+  _next_top_at_mark_start = bottom();
   _prev_marked_bytes = _next_marked_bytes;
   _next_marked_bytes = 0;
 }