equal
deleted
inserted
replaced
1936 |
1936 |
1937 double start = os::elapsedTime(); |
1937 double start = os::elapsedTime(); |
1938 |
1938 |
1939 HeapRegionRemSet::reset_for_cleanup_tasks(); |
1939 HeapRegionRemSet::reset_for_cleanup_tasks(); |
1940 |
1940 |
1941 uint n_workers; |
|
1942 |
|
1943 // Do counting once more with the world stopped for good measure. |
1941 // Do counting once more with the world stopped for good measure. |
1944 G1ParFinalCountTask g1_par_count_task(g1h, &_region_bm, &_card_bm); |
1942 G1ParFinalCountTask g1_par_count_task(g1h, &_region_bm, &_card_bm); |
1945 |
1943 |
1946 g1h->set_par_threads(); |
1944 g1h->set_par_threads(); |
1947 n_workers = g1h->n_par_threads(); |
1945 uint n_workers = _g1h->workers()->active_workers(); |
1948 assert(g1h->n_par_threads() == n_workers, |
|
1949 "Should not have been reset"); |
|
1950 g1h->workers()->run_task(&g1_par_count_task); |
1946 g1h->workers()->run_task(&g1_par_count_task); |
1951 // Done with the parallel phase so reset to 0. |
1947 // Done with the parallel phase so reset to 0. |
1952 g1h->set_par_threads(0); |
1948 g1h->set_par_threads(0); |
1953 |
1949 |
1954 if (VerifyDuringGC) { |
1950 if (VerifyDuringGC) { |