Mercurial > hg > graal-compiler
comparison src/share/vm/gc_implementation/g1/g1StringDedup.cpp @ 17947:1772223a25a2
8037112: gc/g1/TestHumongousAllocInitialMark.java caused SIGSEGV
Reviewed-by: brutisso, mgerdin
author | pliden |
---|---|
date | Fri, 11 Apr 2014 11:00:12 +0200 |
parents | 595c0f60d50d |
children |
comparison
equal
deleted
inserted
replaced
17946:997fd9660dd5 | 17947:1772223a25a2 |
---|---|
40 _enabled = true; | 40 _enabled = true; |
41 G1StringDedupQueue::create(); | 41 G1StringDedupQueue::create(); |
42 G1StringDedupTable::create(); | 42 G1StringDedupTable::create(); |
43 G1StringDedupThread::create(); | 43 G1StringDedupThread::create(); |
44 } | 44 } |
45 } | |
46 | |
47 void G1StringDedup::stop() { | |
48 assert(is_enabled(), "String deduplication not enabled"); | |
49 G1StringDedupThread::stop(); | |
45 } | 50 } |
46 | 51 |
47 bool G1StringDedup::is_candidate_from_mark(oop obj) { | 52 bool G1StringDedup::is_candidate_from_mark(oop obj) { |
48 if (java_lang_String::is_instance(obj)) { | 53 if (java_lang_String::is_instance(obj)) { |
49 bool from_young = G1CollectedHeap::heap()->heap_region_containing_raw(obj)->is_young(); | 54 bool from_young = G1CollectedHeap::heap()->heap_region_containing_raw(obj)->is_young(); |