mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8213565: Crash in DependencyContext::remove_dependent_nmethod
Reviewed-by: rehn, kvn
This commit is contained in:
parent
a2bbc9c091
commit
3a5bccf5c6
18 changed files with 320 additions and 213 deletions
|
@ -180,17 +180,10 @@ class CodeCache : AllStatic {
|
|||
ClosureIsUnloadingBehaviour _is_unloading_behaviour;
|
||||
|
||||
public:
|
||||
UnloadingScope(BoolObjectClosure* is_alive)
|
||||
: _is_unloading_behaviour(is_alive)
|
||||
{
|
||||
IsUnloadingBehaviour::set_current(&_is_unloading_behaviour);
|
||||
increment_unloading_cycle();
|
||||
}
|
||||
|
||||
~UnloadingScope() {
|
||||
IsUnloadingBehaviour::set_current(NULL);
|
||||
}
|
||||
UnloadingScope(BoolObjectClosure* is_alive);
|
||||
~UnloadingScope();
|
||||
};
|
||||
|
||||
static void do_unloading(BoolObjectClosure* is_alive, bool unloading_occurred);
|
||||
static uint8_t unloading_cycle() { return _unloading_cycle; }
|
||||
static void increment_unloading_cycle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue