diff --git a/src/hotspot/share/interpreter/oopMapCache.cpp b/src/hotspot/share/interpreter/oopMapCache.cpp index d18d1614f14..1aa3415b4ab 100644 --- a/src/hotspot/share/interpreter/oopMapCache.cpp +++ b/src/hotspot/share/interpreter/oopMapCache.cpp @@ -540,6 +540,7 @@ void OopMapCache::lookup(const methodHandle& method, // at this time. We give the caller of lookup() a copy of the // interesting info via parameter entry_for, but we don't add it to // the cache. See the gory details in Method*.cpp. + tmp->flush(); FREE_C_HEAP_OBJ(tmp); return; } @@ -610,5 +611,6 @@ void OopMapCache::compute_one_oop_map(const methodHandle& method, int bci, Inter tmp->initialize(); tmp->fill(method, bci); entry->resource_copy(tmp); + tmp->flush(); FREE_C_HEAP_OBJ(tmp); }