Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/parMarkBitMap.cpp @ 20221:ab5fbf410512
8043722: Swapped usage of idx_t and bm_word_t types in parMarkBitMap.cpp
Summary: Clean up usage of idx_t and uintptr_t when using it in conjunction with BitMap::set_map(), casting to the appropriate type. Fixes compilation on S390.
Reviewed-by: tschatzl
Contributed-by: Dan Horak <dhorak@redhat.com>
author | tschatzl |
---|---|
date | Mon, 21 Jul 2014 09:40:19 +0200 |
parents | bdd155477289 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20220:d15367d92f0d | 20221:ab5fbf410512 |
---|---|
69 | 69 |
70 _virtual_space = new PSVirtualSpace(rs, page_sz); | 70 _virtual_space = new PSVirtualSpace(rs, page_sz); |
71 if (_virtual_space != NULL && _virtual_space->expand_by(_reserved_byte_size)) { | 71 if (_virtual_space != NULL && _virtual_space->expand_by(_reserved_byte_size)) { |
72 _region_start = covered_region.start(); | 72 _region_start = covered_region.start(); |
73 _region_size = covered_region.word_size(); | 73 _region_size = covered_region.word_size(); |
74 idx_t* map = (idx_t*)_virtual_space->reserved_low_addr(); | 74 BitMap::bm_word_t* map = (BitMap::bm_word_t*)_virtual_space->reserved_low_addr(); |
75 _beg_bits.set_map(map); | 75 _beg_bits.set_map(map); |
76 _beg_bits.set_size(bits / 2); | 76 _beg_bits.set_size(bits / 2); |
77 _end_bits.set_map(map + words / 2); | 77 _end_bits.set_map(map + words / 2); |
78 _end_bits.set_size(bits / 2); | 78 _end_bits.set_size(bits / 2); |
79 return true; | 79 return true; |