--- a/hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Tue Sep 28 09:51:37 2010 -0700
+++ b/hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp Tue Sep 28 15:56:15 2010 -0700
@@ -1691,8 +1691,8 @@
ref = new_ref;
}
- int refs_to_scan() { return refs()->size(); }
- int overflowed_refs_to_scan() { return refs()->overflow_stack()->length(); }
+ int refs_to_scan() { return (int)refs()->size(); }
+ int overflowed_refs_to_scan() { return (int)refs()->overflow_stack()->size(); }
template <class T> void update_rs(HeapRegion* from, T* p, int tid) {
if (G1DeferredRSUpdate) {