@@ -194,9 +194,7 @@ class ObPLCodeGenerator
194194 di_user_type_map_ (),
195195 debug_mode_ (session_info_.is_pl_debug_on() && func_ast.is_routine()),
196196 oracle_mode_ (oracle_mode)
197- {
198- goto_label_map_.create (func_ast.get_body ()->get_stmts ().count (), " PlCodeGen" );
199- }
197+ { }
200198
201199 virtual ~ObPLCodeGenerator () {}
202200
@@ -488,8 +486,28 @@ class ObPLCodeGenerator
488486 }
489487 inline jit::ObLLVMFunction &get_func () { return func_; }
490488 inline ObPLSEArray<jit::ObLLVMValue> &get_vars () { return vars_; }
491- typedef common::hash::ObPlacementHashMap<uint64_t , jit::ObLLVMType, 733 > ObLLVMTypeMap;
492- typedef common::hash::ObPlacementHashMap<uint64_t , jit::ObLLVMDIType, 733 > ObLLVMDITypeMap;
489+ typedef common::hash::ObHashMap<
490+ uint64_t , jit::ObLLVMType,
491+ common::hash::NoPthreadDefendMode,
492+ common::hash::hash_func<uint64_t >,
493+ common::hash::equal_to<uint64_t >,
494+ common::hash::SimpleAllocer<common::hash::ObHashTableNode<
495+ common::hash::HashMapPair<uint64_t , jit::ObLLVMType>>>,
496+ common::hash::NormalPointer,
497+ common::ObMalloc,
498+ 2 > // EXTEND_RATIO
499+ ObLLVMTypeMap;
500+ typedef common::hash::ObHashMap<
501+ uint64_t , jit::ObLLVMDIType,
502+ common::hash::NoPthreadDefendMode,
503+ common::hash::hash_func<uint64_t >,
504+ common::hash::equal_to<uint64_t >,
505+ common::hash::SimpleAllocer<common::hash::ObHashTableNode<
506+ common::hash::HashMapPair<uint64_t , jit::ObLLVMDIType>>>,
507+ common::hash::NormalPointer,
508+ common::ObMalloc,
509+ 2 > // EXTEND_RATIO
510+ ObLLVMDITypeMap;
493511 inline ObLLVMTypeMap &get_user_type_map () { return user_type_map_; }
494512 int set_var_addr_to_param_store (int64_t var_index, jit::ObLLVMValue &var, jit::ObLLVMValue &init_value);
495513 int get_llvm_type (const ObPLDataType &pl_type, jit::ObLLVMType &ir_type);
0 commit comments