diff -r 89fd070a30a3 -r a7815bb05ae2 hotspot/src/share/vm/gc_implementation/g1/concurrentG1RefineThread.cpp --- a/hotspot/src/share/vm/gc_implementation/g1/concurrentG1RefineThread.cpp Mon May 11 10:29:57 2015 +0200 +++ b/hotspot/src/share/vm/gc_implementation/g1/concurrentG1RefineThread.cpp Mon May 11 13:57:30 2015 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2001, 2015, 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 @@ -77,7 +77,7 @@ } void ConcurrentG1RefineThread::sample_young_list_rs_lengths() { - SuspendibleThreadSetJoiner sts; + SuspendibleThreadSetJoiner sts_join; G1CollectedHeap* g1h = G1CollectedHeap::heap(); G1CollectorPolicy* g1p = g1h->g1_policy(); if (g1p->adaptive_young_list_length()) { @@ -89,8 +89,8 @@ // we try to yield every time we visit 10 regions if (regions_visited == 10) { - if (sts.should_yield()) { - sts.yield(); + if (sts_join.should_yield()) { + sts_join.yield(); // we just abandon the iteration break; } @@ -188,7 +188,7 @@ } { - SuspendibleThreadSetJoiner sts; + SuspendibleThreadSetJoiner sts_join; do { int curr_buffer_num = (int)dcqs.completed_buffers_num();