Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/heapRegion.cpp @ 1408:0ba67bb5392c
added c1x build directory, added MSVC Win64 project support
author | lstadler |
---|---|
date | Wed, 12 May 2010 15:01:05 +0200 |
parents | 1316cec51b4d |
children | 2d26b0046e0d |
comparison
equal
deleted
inserted
replaced
1407:09e7826ecf01 | 1408:0ba67bb5392c |
---|---|
288 | 288 |
289 int region_size_log = log2_long((jlong) region_size); | 289 int region_size_log = log2_long((jlong) region_size); |
290 // Recalculate the region size to make sure it's a power of | 290 // Recalculate the region size to make sure it's a power of |
291 // 2. This means that region_size is the largest power of 2 that's | 291 // 2. This means that region_size is the largest power of 2 that's |
292 // <= what we've calculated so far. | 292 // <= what we've calculated so far. |
293 region_size = 1 << region_size_log; | 293 region_size = ((uintx)1) << region_size_log; |
294 | 294 |
295 // Now make sure that we don't go over or under our limits. | 295 // Now make sure that we don't go over or under our limits. |
296 if (region_size < MIN_REGION_SIZE) { | 296 if (region_size < MIN_REGION_SIZE) { |
297 region_size = MIN_REGION_SIZE; | 297 region_size = MIN_REGION_SIZE; |
298 } else if (region_size > MAX_REGION_SIZE) { | 298 } else if (region_size > MAX_REGION_SIZE) { |