--- a/src/hotspot/share/code/compiledMethod.hpp Wed Dec 05 17:33:01 2018 +0000
+++ b/src/hotspot/share/code/compiledMethod.hpp Wed Dec 05 15:57:26 2018 +0100
@@ -352,12 +352,11 @@
// Inline cache support for class unloading and nmethod unloading
private:
- void cleanup_inline_caches_impl(bool unloading_occurred, bool clean_all);
+ bool cleanup_inline_caches_impl(bool unloading_occurred, bool clean_all);
+
public:
- void cleanup_inline_caches(bool clean_all) {
- // Serial version used by sweeper and whitebox test
- cleanup_inline_caches_impl(false, clean_all);
- }
+ // Serial version used by sweeper and whitebox test
+ void cleanup_inline_caches(bool clean_all);
virtual void clear_inline_caches();
void clear_ic_stubs();
@@ -390,7 +389,7 @@
address oops_reloc_begin() const;
private:
- void static clean_ic_if_metadata_is_dead(CompiledIC *ic);
+ bool static clean_ic_if_metadata_is_dead(CompiledIC *ic);
void clean_ic_stubs();
@@ -400,7 +399,7 @@
virtual bool is_unloading() = 0;
- void unload_nmethod_caches(bool class_unloading_occurred);
+ bool unload_nmethod_caches(bool class_unloading_occurred);
virtual void do_unloading(bool unloading_occurred) { }
private: