diff -r cd21aff24069 -r 489f1dd40582 src/hotspot/share/gc/g1/g1CollectionSet.cpp --- a/src/hotspot/share/gc/g1/g1CollectionSet.cpp Fri Mar 02 17:33:59 2018 -0800 +++ b/src/hotspot/share/gc/g1/g1CollectionSet.cpp Sat Mar 03 23:56:08 2018 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -80,7 +80,7 @@ void G1CollectionSet::init_region_lengths(uint eden_cset_region_length, uint survivor_cset_region_length) { - assert_at_safepoint(true); + assert_at_safepoint_on_vm_thread(); _eden_region_length = eden_cset_region_length; _survivor_region_length = survivor_cset_region_length; @@ -103,7 +103,7 @@ // Add the heap region at the head of the non-incremental collection set void G1CollectionSet::add_old_region(HeapRegion* hr) { - assert_at_safepoint(true); + assert_at_safepoint_on_vm_thread(); assert(_inc_build_state == Active, "Precondition"); assert(hr->is_old(), "the region should be old"); @@ -167,7 +167,7 @@ } void G1CollectionSet::clear() { - assert_at_safepoint(true); + assert_at_safepoint_on_vm_thread(); _collection_set_cur_length = 0; } @@ -314,7 +314,7 @@ }; bool G1CollectionSet::verify_young_ages() { - assert_at_safepoint(true); + assert_at_safepoint_on_vm_thread(); G1VerifyYoungAgesClosure cl; iterate(&cl); @@ -541,7 +541,7 @@ }; void G1CollectionSet::verify_young_cset_indices() const { - assert_at_safepoint(true); + assert_at_safepoint_on_vm_thread(); G1VerifyYoungCSetIndicesClosure cl(_collection_set_cur_length); iterate(&cl);