hotspot/src/share/vm/gc/g1/g1StringDedup.cpp
changeset 37081 7656f5356a5d
parent 33786 ac8da6513351
child 40655 9f644073d3a0
equal deleted inserted replaced
37080:6f33de00485c 37081:7656f5356a5d
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    45   }
    45   }
    46 }
    46 }
    47 
    47 
    48 void G1StringDedup::stop() {
    48 void G1StringDedup::stop() {
    49   assert(is_enabled(), "String deduplication not enabled");
    49   assert(is_enabled(), "String deduplication not enabled");
    50   G1StringDedupThread::stop();
    50   G1StringDedupThread::thread()->stop();
    51 }
    51 }
    52 
    52 
    53 bool G1StringDedup::is_candidate_from_mark(oop obj) {
    53 bool G1StringDedup::is_candidate_from_mark(oop obj) {
    54   if (java_lang_String::is_instance_inlined(obj)) {
    54   if (java_lang_String::is_instance_inlined(obj)) {
    55     bool from_young = G1CollectedHeap::heap()->heap_region_containing(obj)->is_young();
    55     bool from_young = G1CollectedHeap::heap()->heap_region_containing(obj)->is_young();