--- old/src/hotspot/share/code/compiledMethod.inline.hpp 2018-03-02 08:12:09.439601671 -0500 +++ new/src/hotspot/share/code/compiledMethod.inline.hpp 2018-03-02 08:12:08.838440151 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -38,6 +38,9 @@ ; } +inline void CompiledMethod::release_set_exception_cache(ExceptionCache *ec) { + OrderAccess::release_store(&_exception_cache, ec); +} // ----------------------------------------------------------------------------- // CompiledMethod::get_deopt_original_pc @@ -56,4 +59,13 @@ return NULL; } + +// class ExceptionCache methods + +inline int ExceptionCache::count() { return OrderAccess::load_acquire(&_count); } + +// increment_count is only called under lock, but there may be concurrent readers. +inline void ExceptionCache::increment_count() { OrderAccess::release_store(&_count, _count + 1); } + + #endif //SHARE_VM_CODE_COMPILEDMETHOD_INLINE_HPP