Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/parallelScavenge/psPromotionManager.cpp @ 2370:048f98400b8e
Merge
author | jcoomes |
---|---|
date | Fri, 18 Mar 2011 09:03:43 -0700 |
parents | 1fb790245268 |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2360:fc5ebbb2d1a8 | 2370:048f98400b8e |
---|---|
409 } | 409 } |
410 | 410 |
411 template <class T> void PSPromotionManager::process_array_chunk_work( | 411 template <class T> void PSPromotionManager::process_array_chunk_work( |
412 oop obj, | 412 oop obj, |
413 int start, int end) { | 413 int start, int end) { |
414 assert(start < end, "invariant"); | 414 assert(start <= end, "invariant"); |
415 T* const base = (T*)objArrayOop(obj)->base(); | 415 T* const base = (T*)objArrayOop(obj)->base(); |
416 T* p = base + start; | 416 T* p = base + start; |
417 T* const chunk_end = base + end; | 417 T* const chunk_end = base + end; |
418 while (p < chunk_end) { | 418 while (p < chunk_end) { |
419 if (PSScavenge::should_scavenge(p)) { | 419 if (PSScavenge::should_scavenge(p)) { |