From 9b3c54b2fc836e20a0a7895aa759938e62eaacf9 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Mon, 1 Mar 2010 18:42:18 -0800 Subject: PR11246 cont'd: Separate script/stapconf caching I'm separating the caching and creation logic for stapconf, so it can be conditionalized on s.use_cache instead of s.use_script_cache. * session.h (systemtap_session): Store base_hash for better reuse. * hash.cxx (get_base_hash): Get the base from the session, or build it. (find_hash): Split into separate script/stapconf versions. * cache.cxx (add_to_cache, get_from_cache): Ditto. * main.cxx (main): Adapt caller, and delay stapconf until pass-4. --- elaborate.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'elaborate.cxx') diff --git a/elaborate.cxx b/elaborate.cxx index f442aceb..a2ab8522 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1516,6 +1516,7 @@ semantic_pass (systemtap_session& s) systemtap_session::systemtap_session (): // NB: pointer members must be manually initialized! + base_hash(0), pattern_root(new match_node), user_file (0), be_derived_probes(0), -- cgit