mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8289230: Move PlatformXXX class declarations out of os_xxx.hpp
Reviewed-by: coleenp, ccheung
This commit is contained in:
parent
44e8c462b4
commit
cdf6979259
36 changed files with 782 additions and 469 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue