< prev index next >
src/hotspot/share/code/compiledMethod.inline.hpp
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2017, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
--- 1,7 ----
/*
! * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*** 36,45 ****
--- 36,48 ----
|| (is_compiled_by_jvmci() && pc == (deopt_handler_begin() + NativeCall::instruction_size))
#endif
;
}
+ inline void CompiledMethod::release_set_exception_cache(ExceptionCache *ec) {
+ OrderAccess::release_store(&_exception_cache, ec);
+ }
// -----------------------------------------------------------------------------
// CompiledMethod::get_deopt_original_pc
//
// Return the original PC for the given PC if:
*** 54,59 ****
--- 57,71 ----
return cm->get_original_pc(fr);
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
< prev index next >