Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parNew/parNewGeneration.cpp @ 13400:86e6d691f2e1
8028128: Add a type safe alternative for working with counter based data
Reviewed-by: dholmes, egahlin
author | mgronlun |
---|---|
date | Sat, 23 Nov 2013 12:25:13 +0100 |
parents | 190899198332 |
children | 870aedf4ba4f 78bbf4d43a14 |
comparison
equal
deleted
inserted
replaced
13399:260ac69dc096 | 13400:86e6d691f2e1 |
---|---|
913 bool is_tlab) { | 913 bool is_tlab) { |
914 assert(full || size > 0, "otherwise we don't want to collect"); | 914 assert(full || size > 0, "otherwise we don't want to collect"); |
915 | 915 |
916 GenCollectedHeap* gch = GenCollectedHeap::heap(); | 916 GenCollectedHeap* gch = GenCollectedHeap::heap(); |
917 | 917 |
918 _gc_timer->register_gc_start(os::elapsed_counter()); | 918 _gc_timer->register_gc_start(); |
919 | 919 |
920 assert(gch->kind() == CollectedHeap::GenCollectedHeap, | 920 assert(gch->kind() == CollectedHeap::GenCollectedHeap, |
921 "not a CMS generational heap"); | 921 "not a CMS generational heap"); |
922 AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy(); | 922 AdaptiveSizePolicy* size_policy = gch->gen_policy()->size_policy(); |
923 FlexibleWorkGang* workers = gch->workers(); | 923 FlexibleWorkGang* workers = gch->workers(); |
1089 rp->verify_no_references_recorded(); | 1089 rp->verify_no_references_recorded(); |
1090 | 1090 |
1091 gch->trace_heap_after_gc(&gc_tracer); | 1091 gch->trace_heap_after_gc(&gc_tracer); |
1092 gc_tracer.report_tenuring_threshold(tenuring_threshold()); | 1092 gc_tracer.report_tenuring_threshold(tenuring_threshold()); |
1093 | 1093 |
1094 _gc_timer->register_gc_end(os::elapsed_counter()); | 1094 _gc_timer->register_gc_end(); |
1095 | 1095 |
1096 gc_tracer.report_gc_end(_gc_timer->gc_end(), _gc_timer->time_partitions()); | 1096 gc_tracer.report_gc_end(_gc_timer->gc_end(), _gc_timer->time_partitions()); |
1097 } | 1097 } |
1098 | 1098 |
1099 static int sum; | 1099 static int sum; |