Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciKlass.cpp @ 2177:3582bf76420e
6990754: Use native memory and reference counting to implement SymbolTable
Summary: move symbols from permgen into C heap and reference count them
Reviewed-by: never, acorn, jmasa, stefank
author | coleenp |
---|---|
date | Thu, 27 Jan 2011 16:11:27 -0800 |
parents | f95d63e2154a |
children | 1d1603768966 |
comparison
equal
deleted
inserted
replaced
2176:27e4ea99855d | 2177:3582bf76420e |
---|---|
37 // ciKlass::ciKlass | 37 // ciKlass::ciKlass |
38 ciKlass::ciKlass(KlassHandle h_k) : ciType(h_k) { | 38 ciKlass::ciKlass(KlassHandle h_k) : ciType(h_k) { |
39 assert(get_oop()->is_klass(), "wrong type"); | 39 assert(get_oop()->is_klass(), "wrong type"); |
40 Klass* k = get_Klass(); | 40 Klass* k = get_Klass(); |
41 _layout_helper = k->layout_helper(); | 41 _layout_helper = k->layout_helper(); |
42 symbolOop klass_name = k->name(); | 42 Symbol* klass_name = k->name(); |
43 assert(klass_name != NULL, "wrong ciKlass constructor"); | 43 assert(klass_name != NULL, "wrong ciKlass constructor"); |
44 _name = CURRENT_ENV->get_object(klass_name)->as_symbol(); | 44 _name = CURRENT_ENV->get_symbol(klass_name); |
45 } | 45 } |
46 | 46 |
47 // ------------------------------------------------------------------ | 47 // ------------------------------------------------------------------ |
48 // ciKlass::ciKlass | 48 // ciKlass::ciKlass |
49 // | 49 // |