mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-31 13:38:47 +00:00
8351081: Off-by-one error in ShenandoahCardCluster
Reviewed-by: wkemper
This commit is contained in:
parent
29de20dbc2
commit
38b4d46c1f
@ -402,7 +402,7 @@ public:
|
||||
|
||||
ShenandoahCardCluster(ShenandoahDirectCardMarkRememberedSet* rs) {
|
||||
_rs = rs;
|
||||
_object_starts = NEW_C_HEAP_ARRAY(crossing_info, rs->total_cards(), mtGC);
|
||||
_object_starts = NEW_C_HEAP_ARRAY(crossing_info, rs->total_cards() + 1, mtGC); // the +1 is to account for card table guarding entry
|
||||
for (size_t i = 0; i < rs->total_cards(); i++) {
|
||||
_object_starts[i].short_word = 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user