mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
8374233: Overloaded constructor MountUnmountDisabler(jthread thread) is missed
Reviewed-by: cjplummer, amenkov
This commit is contained in:
parent
61cb6d7408
commit
f5249db9c5
@ -28,6 +28,7 @@
|
||||
#include "prims/jvmtiThreadState.inline.hpp"
|
||||
#include "runtime/handles.inline.hpp"
|
||||
#include "runtime/javaThread.hpp"
|
||||
#include "runtime/jniHandles.hpp"
|
||||
#include "runtime/mountUnmountDisabler.hpp"
|
||||
#include "runtime/threadSMR.hpp"
|
||||
|
||||
@ -193,6 +194,13 @@ void MountUnmountDisabler::end_transition(JavaThread* current, oop vthread, bool
|
||||
}
|
||||
}
|
||||
|
||||
// disable transitions for one virtual thread
|
||||
// disable transitions for all threads if thread is nullptr or a platform thread
|
||||
MountUnmountDisabler::MountUnmountDisabler(jthread thread)
|
||||
: MountUnmountDisabler(JNIHandles::resolve_external_guard(thread))
|
||||
{
|
||||
}
|
||||
|
||||
// disable transitions for one virtual thread
|
||||
// disable transitions for all threads if thread is nullptr or a platform thread
|
||||
MountUnmountDisabler::MountUnmountDisabler(oop thread_oop)
|
||||
|
||||
@ -58,6 +58,7 @@ class MountUnmountDisabler : public AnyObj {
|
||||
public:
|
||||
MountUnmountDisabler(bool exlusive = false);
|
||||
MountUnmountDisabler(oop thread_oop);
|
||||
MountUnmountDisabler(jthread thread);
|
||||
~MountUnmountDisabler();
|
||||
|
||||
static int global_vthread_transition_disable_count();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user