src/hotspot/share/gc/g1/g1StringDedup.cpp
changeset 47885 5caa1d5f74c1
parent 47634 6a0c42c40cd1
child 49722 a47d1e21b3f1
equal deleted inserted replaced
47884:3cfab71d6c81 47885:5caa1d5f74c1
    63 
    63 
    64   // Not a candidate
    64   // Not a candidate
    65   return false;
    65   return false;
    66 }
    66 }
    67 
    67 
    68 void G1StringDedup::enqueue_from_mark(oop java_string) {
    68 void G1StringDedup::enqueue_from_mark(oop java_string, uint worker_id) {
    69   assert(is_enabled(), "String deduplication not enabled");
    69   assert(is_enabled(), "String deduplication not enabled");
    70   if (is_candidate_from_mark(java_string)) {
    70   if (is_candidate_from_mark(java_string)) {
    71     G1StringDedupQueue::push(0 /* worker_id */, java_string);
    71     G1StringDedupQueue::push(worker_id, java_string);
    72   }
    72   }
    73 }
    73 }
    74 
    74 
    75 bool G1StringDedup::is_candidate_from_evacuation(bool from_young, bool to_young, oop obj) {
    75 bool G1StringDedup::is_candidate_from_evacuation(bool from_young, bool to_young, oop obj) {
    76   if (from_young && java_lang_String::is_instance_inlined(obj)) {
    76   if (from_young && java_lang_String::is_instance_inlined(obj)) {