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