equal
deleted
inserted
replaced
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(); |