comparison src/share/vm/oops/oop.hpp @ 342:37f87013dfd8

6711316: Open source the Garbage-First garbage collector Summary: First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
author ysr
date Thu, 05 Jun 2008 15:57:56 -0700
parents b7268662a986
children 6aae2f9d0294
comparison
equal deleted inserted replaced
189:0b27f3512f9e 342:37f87013dfd8
356 // Fast access to barrier set 356 // Fast access to barrier set
357 static BarrierSet* bs() { return _bs; } 357 static BarrierSet* bs() { return _bs; }
358 static void set_bs(BarrierSet* bs) { _bs = bs; } 358 static void set_bs(BarrierSet* bs) { _bs = bs; }
359 359
360 // iterators, returns size of object 360 // iterators, returns size of object
361 #define OOP_ITERATE_DECL(OopClosureType, nv_suffix) \ 361 #define OOP_ITERATE_DECL(OopClosureType, nv_suffix) \
362 int oop_iterate(OopClosureType* blk); \ 362 int oop_iterate(OopClosureType* blk); \
363 int oop_iterate(OopClosureType* blk, MemRegion mr); // Only in mr. 363 int oop_iterate(OopClosureType* blk, MemRegion mr); // Only in mr.
364 364
365 ALL_OOP_OOP_ITERATE_CLOSURES_1(OOP_ITERATE_DECL) 365 ALL_OOP_OOP_ITERATE_CLOSURES_1(OOP_ITERATE_DECL)
366 ALL_OOP_OOP_ITERATE_CLOSURES_3(OOP_ITERATE_DECL) 366 ALL_OOP_OOP_ITERATE_CLOSURES_2(OOP_ITERATE_DECL)
367
368 #ifndef SERIALGC
369
370 #define OOP_ITERATE_BACKWARDS_DECL(OopClosureType, nv_suffix) \
371 int oop_iterate_backwards(OopClosureType* blk);
372
373 ALL_OOP_OOP_ITERATE_CLOSURES_1(OOP_ITERATE_BACKWARDS_DECL)
374 ALL_OOP_OOP_ITERATE_CLOSURES_2(OOP_ITERATE_BACKWARDS_DECL)
375 #endif
367 376
368 void oop_iterate_header(OopClosure* blk); 377 void oop_iterate_header(OopClosure* blk);
369 void oop_iterate_header(OopClosure* blk, MemRegion mr); 378 void oop_iterate_header(OopClosure* blk, MemRegion mr);
370 379
371 // identity hash; returns the identity hash key (computes it if necessary) 380 // identity hash; returns the identity hash key (computes it if necessary)