equal
deleted
inserted
replaced
46 } |
46 } |
47 } |
47 } |
48 |
48 |
49 |
49 |
50 // Creates a constant pool cache given an inverse_index_map |
50 // Creates a constant pool cache given an inverse_index_map |
|
51 // This creates the constant pool cache initially in a state |
|
52 // that is unsafe for concurrent GC processing but sets it to |
|
53 // a safe mode before the constant pool cache is returned. |
51 constantPoolCacheHandle Rewriter::new_constant_pool_cache(intArray& inverse_index_map, TRAPS) { |
54 constantPoolCacheHandle Rewriter::new_constant_pool_cache(intArray& inverse_index_map, TRAPS) { |
52 const int length = inverse_index_map.length(); |
55 const int length = inverse_index_map.length(); |
53 constantPoolCacheOop cache = oopFactory::new_constantPoolCache(length, CHECK_(constantPoolCacheHandle())); |
56 constantPoolCacheOop cache = oopFactory::new_constantPoolCache(length, |
|
57 methodOopDesc::IsUnsafeConc, |
|
58 CHECK_(constantPoolCacheHandle())); |
54 cache->initialize(inverse_index_map); |
59 cache->initialize(inverse_index_map); |
55 return constantPoolCacheHandle(THREAD, cache); |
60 return constantPoolCacheHandle(THREAD, cache); |
56 } |
61 } |
57 |
62 |
58 |
63 |