mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8312127: FileDescriptor.sync should temporarily increase parallelism
Reviewed-by: shade, bpb
This commit is contained in:
parent
201e3bcf52
commit
fbe51e388d
3 changed files with 17 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, 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
|
||||
|
@ -58,7 +58,7 @@ Java_java_io_FileDescriptor_initIDs(JNIEnv *env, jclass fdClass) {
|
|||
*/
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_java_io_FileDescriptor_sync(JNIEnv *env, jobject this) {
|
||||
Java_java_io_FileDescriptor_sync0(JNIEnv *env, jobject this) {
|
||||
FD fd = THIS_FD(this);
|
||||
if (IO_Sync(fd) == -1) {
|
||||
JNU_ThrowByName(env, "java/io/SyncFailedException", "sync failed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue