8289230: Move PlatformXXX class declarations out of os_xxx.hpp

Reviewed-by: coleenp, ccheung
This commit is contained in:
Ioi Lam 2022-07-02 14:45:10 +00:00
parent 44e8c462b4
commit cdf6979259
36 changed files with 782 additions and 469 deletions

View file

@ -3517,26 +3517,26 @@ JVM_END
JNIEXPORT void* JNICALL JVM_RawMonitorCreate(void) {
VM_Exit::block_if_vm_exited();
return new os::PlatformMutex();
return new PlatformMutex();
}
JNIEXPORT void JNICALL JVM_RawMonitorDestroy(void *mon) {
VM_Exit::block_if_vm_exited();
delete ((os::PlatformMutex*) mon);
delete ((PlatformMutex*) mon);
}
JNIEXPORT jint JNICALL JVM_RawMonitorEnter(void *mon) {
VM_Exit::block_if_vm_exited();
((os::PlatformMutex*) mon)->lock();
((PlatformMutex*) mon)->lock();
return 0;
}
JNIEXPORT void JNICALL JVM_RawMonitorExit(void *mon) {
VM_Exit::block_if_vm_exited();
((os::PlatformMutex*) mon)->unlock();
((PlatformMutex*) mon)->unlock();
}